summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--soh/soh/SaveManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/soh/soh/SaveManager.cpp b/soh/soh/SaveManager.cpp
index 1eafcf642..80ed3648a 100644
--- a/soh/soh/SaveManager.cpp
+++ b/soh/soh/SaveManager.cpp
@@ -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;
}