fix file::writeToJson

This commit is contained in:
hjfod 2023-04-24 08:59:24 +03:00
parent 2dbad94e52
commit 1c699c3b04

View file

@ -41,7 +41,7 @@ namespace geode::utils::file {
template <class T>
Result<> writeToJson(ghc::filesystem::path const& path, T const& data) {
try {
GEODE_UNWRAP(writeString(json::Value(data).dump()));
GEODE_UNWRAP(writeString(path, json::Value(data).dump()));
return Ok();
}
catch(std::exception& e) {