From cf7aae2d838194c06ff35e6948d9ffd93569b116 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Tue, 31 Dec 2024 13:30:20 +0300 Subject: [PATCH] Set a default save file path if none is provided. --- UnleashedRecomp/mod/mod_loader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UnleashedRecomp/mod/mod_loader.cpp b/UnleashedRecomp/mod/mod_loader.cpp index 9b8c3528..f85428ed 100644 --- a/UnleashedRecomp/mod/mod_loader.cpp +++ b/UnleashedRecomp/mod/mod_loader.cpp @@ -98,6 +98,8 @@ void ModLoader::Init() std::string saveFilePathU8 = configIni.getString("CPKREDIR", "SaveFileFallback", std::string()); if (!saveFilePathU8.empty()) ModLoader::s_saveFilePath = std::u8string_view((const char8_t*)saveFilePathU8.c_str()); + else + ModLoader::s_saveFilePath = "mlsave/SYS-DATA"; } std::string modsDbIniFilePathU8 = configIni.getString("CPKREDIR", "ModsDbIni", "");