mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
Fix save corruption from non null-terminated cstrings (variation) (#230)
* verify save slots better; allow global.sav to work again * fix save corruption and restore global.sav * add comments
This commit is contained in:
@@ -214,6 +214,7 @@ typedef struct Inventory {
|
||||
/* 0x5A */ s8 dungeonKeys[9]; // "key_register"
|
||||
/* 0x63 */ s8 defenseHearts;
|
||||
/* 0x64 */ s8 strayFairies[10]; // "orange_fairy"
|
||||
// 2S2H [Comment] These char[] are not null-terminated, they will not work correctly in string functions
|
||||
/* 0x6E */ char dekuPlaygroundPlayerName[3][8]; // "degnuts_memory_name" Stores playerName (8 char) over (3 days) when getting a new high score
|
||||
} Inventory; // size = 0x88
|
||||
|
||||
@@ -262,6 +263,7 @@ typedef struct SaveOptions {
|
||||
} SaveOptions; // size = 0x6
|
||||
|
||||
typedef struct SavePlayerData {
|
||||
// 2S2H [Comment] These char[] are not null-terminated, they will not work correctly in string functions
|
||||
/* 0x00 */ char newf[6]; // "newf" Will always be "ZELDA3 for a valid save
|
||||
/* 0x06 */ u16 threeDayResetCount; // "savect"
|
||||
/* 0x08 */ char playerName[8]; // "player_name"
|
||||
|
||||
Reference in New Issue
Block a user