diff options
| author | Maciek Baron <thebezet@gmail.com> | 2022-01-01 20:06:21 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-01 13:06:21 -0700 |
| commit | 7df6d01ef3e0d550d780a763bf1ed9ad7f11e9ad (patch) | |
| tree | b23d431d2a1bbd785d7cf218920f710277dd3695 /src/profiler.c | |
| parent | 4d9ca027506ff7a96972ab34803baec1a477a2c8 (diff) | |
Add player and controller labels, rename function (#123)
* Add player labels, rename function
* Relabel controller vars to improve readability
Diffstat (limited to 'src/profiler.c')
| -rw-r--r-- | src/profiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profiler.c b/src/profiler.c index 3b8f00728..c3d5cc636 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -221,7 +221,7 @@ void draw_profiler_mode_0(void) { draw_reference_profiler_bars(); } -extern struct Controller *D_800DC4BC; +extern struct Controller *gControllerOne; // Similar to draw_screen_borders from SM64, with a hint of draw_profiler void resource_display(void) { @@ -231,7 +231,7 @@ void resource_display(void) { gDPSetCycleType(gDisplayListHead++, G_CYC_FILL); gDPSetFillColor(gDisplayListHead++, GPACK_RGBA5551(0, 0, 0, 0) << 16 | GPACK_RGBA5551(0, 0, 0, 0)); - if ((D_800DC4BC->buttonPressed & 0x20) != 0) { + if ((gControllerOne->buttonPressed & 0x20) != 0) { D_800DC664 ^= 1; } draw_profiler_mode_0(); |
