aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/mods/modmanager.cpp
diff options
context:
space:
mode:
authorGlacir <122596880+Glacir@users.noreply.github.com>2023-01-30 18:44:16 +0800
committerGitHub <noreply@github.com>2023-01-30 10:44:16 +0000
commit2c02e7bc6a8055c5950a5ec8cb2fb40c6513436b (patch)
treed05c81e0759432e617c50b30a77d29c0ae29321b /NorthstarDLL/mods/modmanager.cpp
parent75ae0bf4f6fab277a611ab42fc037580bfdfc06e (diff)
downloadNorthstarLauncher-2c02e7bc6a8055c5950a5ec8cb2fb40c6513436b.tar.gz
NorthstarLauncher-2c02e7bc6a8055c5950a5ec8cb2fb40c6513436b.zip
Format content of `enabledmods.json` (#406)
Format enabledmods.json
Diffstat (limited to 'NorthstarDLL/mods/modmanager.cpp')
-rw-r--r--NorthstarDLL/mods/modmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDLL/mods/modmanager.cpp b/NorthstarDLL/mods/modmanager.cpp
index 6310b7ec..a47aa854 100644
--- a/NorthstarDLL/mods/modmanager.cpp
+++ b/NorthstarDLL/mods/modmanager.cpp
@@ -11,7 +11,7 @@
#include "rapidjson/error/en.h"
#include "rapidjson/document.h"
#include "rapidjson/ostreamwrapper.h"
-#include "rapidjson/writer.h"
+#include "rapidjson/prettywriter.h"
#include <filesystem>
#include <fstream>
#include <string>
@@ -750,7 +750,7 @@ void ModManager::UnloadMods()
std::ofstream writeStream(GetNorthstarPrefix() + "/enabledmods.json");
rapidjson::OStreamWrapper writeStreamWrapper(writeStream);
- rapidjson::Writer<rapidjson::OStreamWrapper> writer(writeStreamWrapper);
+ rapidjson::PrettyWriter<rapidjson::OStreamWrapper> writer(writeStreamWrapper);
m_EnabledModsCfg.Accept(writer);
// do we need to dealloc individual entries in m_loadedMods? idk, rework