Files
HackerOoT/include/debug.h
Yanis af3dc71a5c New Inventory Editor (#107)
* inventory editor

* fixed a bug where the menu was usable in special pause screens

* fixed most equipment screen issues

* draw page number on upgrade screen and minor improvements

* format

* fix build issues

* format

* fix build issues

* format

* various improvements

* fix build issues with non-debug

* small cleanup

* last improvements and bugfixes + cleanup and format
2025-11-04 17:23:27 +01:00

39 lines
941 B
C

#ifndef HACKEROOT_DEBUG_H
#define HACKEROOT_DEBUG_H
#include "config.h"
#include "ultra64.h"
#include "padmgr.h"
#include "debug/print.h"
#include "debug/collision_view.h"
#include "debug/inventory_editor.h"
#include "debug/menu.h"
#include "debug/profiler.h"
#include "z_math.h"
#define DEBUG_PRINT_VAR(var) PRINTF("%s: %d\n", #var, var)
#define COLOR_WHITE (0xFFFFFF)
#define COLOR_RED (0xFF0000)
#define COLOR_GREEN (0x00FF00)
#define COLOR_BLUE (0x0000FF)
#define COLOR_BLUE2 (0x0080FF)
#define COLOR_BLUE3 (0x00BFFF)
#define IS_INV_EDITOR_ACTIVE (IS_INV_EDITOR_ENABLED && gDebug.invDebug.state != INVEDITOR_STATE_OFF)
typedef struct Debug {
struct PlayState* play;
Input* input;
PrintUtils printer;
Menu menu;
InventoryEditor invDebug;
} Debug;
void Debug_DrawColorRectangle(Vec2s rectLeft, Vec2s rectRight, Color_RGBA8 rgba);
void Debug_ConfigureNewRectangle(Input* controller);
extern Debug gDebug;
#endif