Decompile cheatIsUnlocked

This commit is contained in:
Ryan Dwyer
2019-12-28 19:14:22 +10:00
parent d3485d7e1a
commit f602eb329a
15 changed files with 205 additions and 304 deletions
+2 -2
View File
@@ -141,9 +141,9 @@
#define NUM_CHEATS 42
#define CHEATFLAG_TIMED 0
#define CHEATFLAG_ALWAYSON 1
#define CHEATFLAG_ALWAYSON 1
#define CHEATFLAG_TRANSFERPAK 2
#define CHEATFLAG_COMPLETION 4
#define CHEATFLAG_COMPLETION 4
#define CHEATFLAG_FIRINGRANGE 8
#define CHR_P1P2_OPPOSITE 0xf1
+1 -1
View File
@@ -3,7 +3,7 @@
#include <ultra64.h>
#include "types.h"
bool cheatIsUnlocked(s32 cheat_id);
u32 cheatIsUnlocked(s32 cheat_id);
bool cheatIsActive(s32 cheat_id);
void cheatActivate(s32 cheat_id);
void cheatDeactivate(s32 cheat_id);
+1 -1
View File
@@ -13,7 +13,7 @@ u32 func0f19cbcc(void);
u32 func0f19cc50(void);
u32 func0f19ccc0(void);
u32 func0f19cdf0(void);
s32 func0f19cf20(s32 stage_index); // firing range related
u32 func0f19cf20(s32 stage_index); // firing range related
u32 func0f19d250(void);
u32 func0f19d25c(void);
u32 func0f19d268(void);
+1 -7
View File
@@ -365,7 +365,6 @@ extern u32 var8009cac4;
extern u32 var8009de20;
extern u32 var8009de24;
extern u32 g_EepromFlags;
extern u32 var8008ae2c;
extern u32 var8008ae30;
extern u32 var8008ae38;
@@ -698,12 +697,7 @@ extern u32 g_CheatsEnabledBank1;
extern u32 var800a21e0;
extern u32 var800a21e8;
extern u32 var800a21f0;
extern u32 var800a2200;
extern u32 var800a2204;
extern u32 var800a2208;
extern u32 var800a220c;
extern u16 g_BestTimes[];
extern u8 g_FiringRangeScores[];
extern struct savefile_solo g_SoloSaveFile;
extern u32 var800a22c0;
extern u32 var800a22d0;
extern u32 var800a2330;
+16
View File
@@ -3883,4 +3883,20 @@ struct menustackitem {
/*0xe6c*/ u32 unke6c;
};
struct savefile_solo {
/*0x00*/ u32 unk00;
/*0x04*/ u32 unk04;
/*0x08*/ u32 unk08;
/*0x0c*/ u32 unk0c;
/*0x10*/ u32 unk10;
/*0x14*/ u32 eepromflags;
/*0x18*/ u32 unk18;
/*0x1c*/ u32 unk1c;
/*0x20*/ u16 besttimes[21][3];
/*0xa0*/ u32 var800a22a0;
/*0xa4*/ u32 var800a22a4;
/*0xa8*/ u32 var800a22a8;
/*0xac*/ u8 firingrangescores[4];
};
#endif