mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-21 23:58:51 -05:00
fix: don't hardcode path for global.sav (#1656)
Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
parent
9804035dc0
commit
36e40665bb
@ -543,7 +543,10 @@ void SaveManager::SaveGlobal() {
|
|||||||
globalBlock["zTargetSetting"] = gSaveContext.zTargetSetting;
|
globalBlock["zTargetSetting"] = gSaveContext.zTargetSetting;
|
||||||
globalBlock["language"] = gSaveContext.language;
|
globalBlock["language"] = gSaveContext.language;
|
||||||
|
|
||||||
std::ofstream output("Save/global.sav");
|
const std::filesystem::path sSavePath(Ship::Window::GetPathRelativeToAppDirectory("Save"));
|
||||||
|
const std::filesystem::path sGlobalPath = sSavePath / std::string("global.sav");
|
||||||
|
|
||||||
|
std::ofstream output(sGlobalPath);
|
||||||
output << std::setw(4) << globalBlock << std::endl;
|
output << std::setw(4) << globalBlock << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user