Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/src/game/debug.h
7858 views
1
#ifndef DEBUG_H
2
#define DEBUG_H
3
4
#include <PR/ultratypes.h>
5
6
enum DebugPage {
7
DEBUG_PAGE_OBJECTINFO, // 0: objectinfo
8
DEBUG_PAGE_CHECKSURFACEINFO, // 1: checkinfo/surfaceinfo
9
DEBUG_PAGE_MAPINFO, // 2: mapinfo
10
DEBUG_PAGE_STAGEINFO, // 3: stageinfo
11
DEBUG_PAGE_EFFECTINFO, // 4: effectinfo
12
DEBUG_PAGE_ENEMYINFO // 5: enemyinfo
13
};
14
15
s64 get_current_clock(void);
16
s64 get_clock_difference(UNUSED s64 cycles);
17
void set_text_array_x_y(s32 xOffset, s32 yOffset);
18
void print_debug_top_down_objectinfo(const char *str, s32 number);
19
void print_debug_top_down_mapinfo(const char * str, s32 number);
20
void print_debug_bottom_up(const char *str, s32 number);
21
void debug_unknown_level_select_check(void);
22
void reset_debug_objectinfo(void);
23
void stub_debug_5(void);
24
void try_print_debug_mario_object_info(void);
25
void try_do_mario_debug_object_spawn(void);
26
void try_print_debug_mario_level_info(void);
27
28
#endif // DEBUG_H
29
30