From 3590cfa118f06b7e4a406681dd0481460e98d853 Mon Sep 17 00:00:00 2001 From: AltoXorg <56553686+Alto1772@users.noreply.github.com> Date: Thu, 30 May 2024 11:42:17 +0800 Subject: [PATCH] Append appShortName in savesFolderPath for non-portable builds (#593) --- mm/2s2h/SaveManager/SaveManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/2s2h/SaveManager/SaveManager.cpp b/mm/2s2h/SaveManager/SaveManager.cpp index 691d740b2..d816972f6 100644 --- a/mm/2s2h/SaveManager/SaveManager.cpp +++ b/mm/2s2h/SaveManager/SaveManager.cpp @@ -7,6 +7,7 @@ #include "macros.h" #include "BenJsonConversions.hpp" +#include "BenPort.h" extern "C" { #include "src/overlays/gamestates/ovl_file_choose/z_file_select.h" @@ -34,7 +35,7 @@ typedef enum FlashSlotFile { ((GET_NEWF(save, 0) == 'Z') && (GET_NEWF(save, 1) == 'E') && (GET_NEWF(save, 2) == 'L') && \ (GET_NEWF(save, 3) == 'D') && (GET_NEWF(save, 4) == 'A') && (GET_NEWF(save, 5) == '3')) -const std::filesystem::path savesFolderPath(Ship::Context::GetPathRelativeToAppDirectory("saves")); +const std::filesystem::path savesFolderPath(Ship::Context::GetPathRelativeToAppDirectory("saves", appShortName)); // Migrations // The idea here is that we can read in any version of the save as generic JSON, then apply migrations