Index: ps/trunk/source/ps/Mod.cpp =================================================================== --- ps/trunk/source/ps/Mod.cpp +++ ps/trunk/source/ps/Mod.cpp @@ -59,7 +59,7 @@ #if OS_WIN const std::filesystem::path modJsonPath = (modsPath / mod / L"mod.json").fileSystemPath(); #else - const char* modJsonPath = OsString(modsPath / mod / L"mod.json").c_str(); + const std::string modJsonPath = OsString(modsPath / mod / L"mod.json"); #endif // Attempt to open mod.json first. std::ifstream modjson(modJsonPath); Index: ps/trunk/source/ps/ModInstaller.cpp =================================================================== --- ps/trunk/source/ps/ModInstaller.cpp +++ ps/trunk/source/ps/ModInstaller.cpp @@ -118,7 +118,7 @@ #if OS_WIN const std::filesystem::path modJsonPath = (modDir / L"mod.json").fileSystemPath(); #else - const char* modJsonPath = OsString(modDir / L"mod.json").c_str(); + const std::string modJsonPath = OsString(modDir / L"mod.json"); #endif std::ofstream mod_json(modJsonPath); if (mod_json.good())