mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-13 13:46:20 -04:00
33 lines
1.3 KiB
C
33 lines
1.3 KiB
C
#ifndef IN_GAME_CHEATS_H
|
|
#define IN_GAME_CHEATS_H
|
|
#include <ultra64.h>
|
|
#include "data.h"
|
|
#include "types.h"
|
|
|
|
extern struct menudialogdef g_CheatsMenuDialog;
|
|
extern struct menudialogdef g_CheatsFunMenuDialog;
|
|
extern struct menudialogdef g_CheatsGameplayMenuDialog;
|
|
extern struct menudialogdef g_CheatsSoloWeaponsMenuDialog;
|
|
extern struct menudialogdef g_CheatsClassicWeaponsMenuDialog;
|
|
extern struct menudialogdef g_CheatsWeaponsMenuDialog;
|
|
extern struct menudialogdef g_CheatsBuddiesMenuDialog;
|
|
|
|
u32 cheatIsUnlocked(s32 cheat_id);
|
|
bool cheatIsActive(s32 cheat_id);
|
|
void cheatActivate(s32 cheat_id);
|
|
void cheatDeactivate(s32 cheat_id);
|
|
void cheatsInit(void);
|
|
void cheatsReset(void);
|
|
char *cheatGetNameIfUnlocked(struct menuitem *item);
|
|
char *cheatGetMarquee(struct menuitem *item);
|
|
s32 cheatGetByTimedStageIndex(s32 stage_index, s32 difficulty);
|
|
s32 cheatGetByCompletedStageIndex(s32 stage_index);
|
|
s32 cheatGetTime(s32 cheat_id);
|
|
char *cheatGetName(s32 cheat_id);
|
|
s32 cheatMenuHandleDialog(s32 operation, struct menudialogdef *dialogdef, union handlerdata *data);
|
|
s32 cheatCheckboxMenuHandler(s32 operation, struct menuitem *item, union handlerdata *data);
|
|
s32 cheatMenuHandleBuddyCheckbox(s32 operation, struct menuitem *item, union handlerdata *data);
|
|
s32 cheatMenuHandleTurnOffAllCheats(s32 operation, struct menuitem *item, union handlerdata *data);
|
|
|
|
#endif
|