Modified sectional saving to utilize an integer ID for calling specific sections to cut down on string copying. Utilizes enum values for non-mod sections to allow for cross-project use of those IDs, and sets up AddSaveFunction to add mod sections after that using max value enum.
This commit is contained in:
@@ -61,6 +61,15 @@ typedef struct {
|
||||
u8 isRoom;
|
||||
} SceneTimestamp;
|
||||
|
||||
typedef enum { // Pre-existing IDs for save sections in base code
|
||||
SECTION_ID_BASE,
|
||||
SECTION_ID_RANDOMIZER,
|
||||
SECTION_ID_STATS,
|
||||
SECTION_ID_ENTRANCES,
|
||||
SECTION_ID_SCENES,
|
||||
SECTION_ID_MAX
|
||||
} SaveFuncIDs;
|
||||
|
||||
typedef struct {
|
||||
/* */ char buildVersion[50];
|
||||
/* */ s16 buildVersionMajor;
|
||||
|
||||
Reference in New Issue
Block a user