mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-21 05:43:42 -07:00
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:
parent
4bc0d7d60d
commit
50fbe5d00c
5 changed files with 114 additions and 87 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue