Skip to content

Commit

Permalink
Add in region setting to ensure extdata is set properly. (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored Apr 3, 2024
1 parent 08323d9 commit d5107eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 6 additions & 0 deletions code/include/rnd/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,16 @@ namespace rnd {
PLAY_ON_CITRA,
} PlayOption;

typedef enum {
REGION_NA,
REGION_EUR,
} Region;

typedef struct {
u8 hashIndexes[5];

u8 playOption;
u8 region;

u8 logic;
u8 locationsReachable;
Expand Down
9 changes: 4 additions & 5 deletions code/source/rnd/extdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,14 @@ namespace rnd {
}

extInfo.mediaType = MEDIATYPE_SD;
extInfo.saveId = 0x125500;
// extInfo.saveId = 0x125500;
// TODO: Region specifics not needed?
/*

if (gSettingsContext.region == REGION_NA) {
extInfo.saveId = 0x33500;
extInfo.saveId = 0x125500;
} else if (gSettingsContext.region == REGION_EUR) {
extInfo.saveId = 0x33600;
extInfo.saveId = 0x125600;
}
*/

// Create the extdata with the icon, one folder max (all the files are in /)
// and per save file: 1 file, 1MiB max
Expand Down

0 comments on commit d5107eb

Please sign in to comment.