mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-09 13:35:22 -04:00
Replace struct cheatthing with struct menu_item
This commit is contained in:
+3
-3
@@ -904,10 +904,10 @@ s32 menuhandlerCheatBuddy(s32 arg0, struct menu_item *item, s32 arg2)
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *cheatGetNameIfUnlocked(struct cheatthing *thing)
|
||||
char *cheatGetNameIfUnlocked(struct menu_item *item)
|
||||
{
|
||||
if (cheatIsUnlocked(thing->cheat_id)) {
|
||||
return textGet(g_CheatSpecs[thing->cheat_id].nametextid);
|
||||
if (cheatIsUnlocked(item->param)) {
|
||||
return textGet(g_CheatSpecs[item->param].nametextid);
|
||||
}
|
||||
|
||||
return textGet(0x544a); // "----------"
|
||||
|
||||
@@ -9,7 +9,7 @@ u32 func0f106ea0(void);
|
||||
u32 func0f1071c4(void);
|
||||
void func0f1074ec(void);
|
||||
u32 func0f107510(void);
|
||||
char *cheatGetNameIfUnlocked(struct cheatthing *thing);
|
||||
char *cheatGetNameIfUnlocked(struct menu_item *item);
|
||||
u32 cheatGetMarquee(void);
|
||||
s32 cheatGetByTimedStageIndex(s32 stage_index, s32 difficulty);
|
||||
s32 cheatGetByCompletedStageIndex(s32 stage_index);
|
||||
|
||||
@@ -2603,11 +2603,6 @@ struct cutscenegroup {
|
||||
u16 namefileid;
|
||||
};
|
||||
|
||||
struct cheatthing {
|
||||
u8 unk00;
|
||||
u8 cheat_id;
|
||||
};
|
||||
|
||||
struct cheatspec {
|
||||
u16 nametextid;
|
||||
u16 time;
|
||||
|
||||
Reference in New Issue
Block a user