mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-14 17:12:59 -07: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
1 changed files with 4 additions and 1 deletions
|
@ -543,7 +543,10 @@ void SaveManager::SaveGlobal() {
|
|||
globalBlock["zTargetSetting"] = gSaveContext.zTargetSetting;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue