Decompile savefileLoadDefaults

This commit is contained in:
Ryan Dwyer
2020-03-26 22:46:26 +10:00
parent 16060e7085
commit ca04bf4c57
12 changed files with 185 additions and 385 deletions
+3
View File
@@ -1806,6 +1806,9 @@
#define SAVEFILEFLAG_RESCUE_MECHANIC_DEAD 0x3e
#define SAVEFILEFLAG_G5_MINE 0x3f // true if thrown on top door
#define SAVEFILEFLAG_LANGFILTERON 0x40
#define SAVEFILEFLAG_41 0x41
#define SAVEFILEFLAG_42 0x42
#define SAVEFILEFLAG_43 0x43
#define SCREENRATIO_NORMAL 0
#define SCREENRATIO_16_9 1
+1 -1
View File
@@ -8,7 +8,7 @@ void savefileSetFlag(u32 value);
void savefileUnsetFlag(u32 value);
void func0f10f1b0(void);
void savefileApplyOptions(struct savefile_solo *file);
u32 func0f10f698(void);
void savefileLoadDefaults(struct savefile_solo *file);
u32 func0f10fac8(void);
u32 func0f10feac(void);
u32 func0f1105fc(void);
+2 -2
View File
@@ -123,9 +123,9 @@ u32 func0f11e3bc(void);
u32 func0f11e3fc(void);
u32 func0f11e478(void);
u32 func0f11e4d4(void);
void func0f11e530(u32 value, u32 *flags, bool set);
void bitSetByIndex(u32 value, u32 *flags, bool set);
u32 bitGetByIndex(u32 value, u32 *flags);
u32 func0f11e5bc(void);
void func0f11e5bc(u32 *flags);
u32 func0f11e618(void);
s32 func0f11e6b0(s32 arg0);
u32 func0f11e750(void);
+8 -5
View File
@@ -4026,16 +4026,19 @@ struct savefile_solo {
* This is a little weird. The name entry is clearly 10 characters plus a
* null byte, but there is other code that uses unk08 for other purposes.
*/
/*0x00*/ char name[8];
/*0x08*/ u32 unk08;
/*0x0c*/ u32 unk0c;
/*0x00*/ char name[11];
/*0x0b*/ u8 unk0b_0 : 5;
/*0x0b*/ u8 unk0b_5 : 3;
/*0x0c*/ u8 unk0c;
/*0x10*/ u32 unk10;
/*0x14*/ u32 flags;
/*0x18*/ u32 unk18;
/*0x1c*/ u32 unk1c;
/*0x1c*/ u16 unk1c;
/*0x1e*/ u16 unk1e;
/*0x20*/ u16 besttimes[NUM_SOLOSTAGES][3];
/*0xa0*/ s32 coopcompletions[3];
/*0xac*/ u8 firingrangescores[4];
/*0xac*/ u8 firingrangescores[9];
/*0xb5*/ u8 unkb5[6];
};
struct propstate {