summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Dubé <serprex@users.noreply.github.com>2025-09-18 00:24:52 +0000
committerGitHub <noreply@github.com>2025-09-17 17:24:52 -0700
commit911c107b6ecb1e7596f5420fc4bd260890760fa1 (patch)
treefce33030e522ae1e87733cd23aaf4221a719734f
parenta88cac300e4b3769baed5a651e679e395a33b16b (diff)
saves: use single white space when formatting (#5791)
this halves size of rando saves
-rw-r--r--soh/soh/SaveManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/soh/soh/SaveManager.cpp b/soh/soh/SaveManager.cpp
index 05b85e69a..aa8481629 100644
--- a/soh/soh/SaveManager.cpp
+++ b/soh/soh/SaveManager.cpp
@@ -1046,12 +1046,12 @@ void SaveManager::SaveFileThreaded(int fileNum, SaveContext* saveContext, int se
#if defined(__SWITCH__) || defined(__WIIU__)
FILE* w = fopen(tempFile.c_str(), "w");
- std::string json_string = saveBlock.dump(4);
+ std::string json_string = saveBlock.dump(1);
fwrite(json_string.c_str(), sizeof(char), json_string.length(), w);
fclose(w);
#else
std::ofstream output(tempFile);
- output << std::setw(4) << saveBlock << std::endl;
+ output << std::setw(1) << saveBlock << std::endl;
output.close();
#endif
@@ -1112,7 +1112,7 @@ void SaveManager::SaveGlobal() {
const std::filesystem::path sGlobalPath = sSavePath / std::string("global.sav");
std::ofstream output(sGlobalPath);
- output << std::setw(4) << globalBlock << std::endl;
+ output << std::setw(1) << globalBlock << std::endl;
}
void SaveManager::LoadFile(int fileNum) {