Files
HackerOoT/include/debug/menu.h
Sauraen ae2010e9b5 New profiler with RSP and CPU tracing, replacing vanilla SPEEDMETER (#116)
* Working on it

* Loading ucode from ROM working

* Menu implemented

* Fixed ifdefs in debug

* Fixed crashing

* Cleanup

* Suppressed make auto generated messages

* Reorganized RSP wrapper assembly files

* Fixed merge bug

* Removing speed_meter

* Porting profiler

* Basics working

* Port basically complete

* Basic tracing working

* CPU tracing working

* Added colors to CPU trace

* Fixed some issues

* Profiler basically done

* Update F3DEX3 to resolve issues

* Cleanup

* Cleaned up things for profiler or F3DEX3 disabled

* Fixed a couple counter names
2024-05-27 18:38:44 +02:00

49 lines
838 B
C

#ifndef HACKEROOT_MENU_H
#define HACKEROOT_MENU_H
#include "ultra64.h"
#include "config.h"
typedef u8 (*MenuFunc)(void*);
typedef enum MenuSelection {
MENU_MIN = -1,
MENU_COLVIEW,
MENU_HITVIEW,
#if ENABLE_PROFILER
MENU_PROFILER,
#endif
#if ENABLE_F3DEX3
MENU_F3DEX3_PROF,
MENU_F3DEX3_OCC,
#endif
MENU_MAX
} MenuSelection;
typedef struct MenuElement {
char* name;
u8 bToggle;
void* pStruct;
MenuFunc updateFunc;
MenuFunc drawFunc;
} MenuElement;
typedef struct Menu {
u8 bShow;
u8 bExecute;
u8 bBackgroundExecution;
u8 nTimer;
u8 bColViewEnabled;
u8 bHitboxViewEnabled;
MenuSelection eSelection;
Input* pInput;
} Menu;
void Menu_Init(Menu* this);
void Menu_Update(Menu* this);
void Menu_Draw(Menu* this);
u8 Menu_DrawCollisionView(Menu* this);
#endif