Skip to content

Commit

Permalink
Append appShortName in savesFolderPath for non-portable builds (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alto1772 authored May 30, 2024
1 parent c2e1c56 commit 3590cfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/2s2h/SaveManager/SaveManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3590cfa

Please sign in to comment.