Replace struct cheatthing with struct menu_item

This commit is contained in:
Ryan Dwyer 2019-12-26 17:41:43 +10:00
parent 604a5f648a
commit da45377c7c
3 changed files with 4 additions and 9 deletions

View File

@ -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); // "----------"

View File

@ -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);

View File

@ -2603,11 +2603,6 @@ struct cutscenegroup {
u16 namefileid;
};
struct cheatthing {
u8 unk00;
u8 cheat_id;
};
struct cheatspec {
u16 nametextid;
u16 time;