Skip to content

Commit efd95da

Browse files
committed
fix macro check
1 parent e09170a commit efd95da

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

rewrite/src/profiler/profiler.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#ifdef REWRITE_PROFILER
21

32
#include <ctr/profiler.h>
43
#include <ctr/nd.h>
54

5+
#ifdef REWRITE_PROFILER
66
// No Vehicle.h
77
struct MetaPhys
88
{
@@ -71,7 +71,7 @@ void RunCollRW();
7171
// because of how assembly hooking system works
7272

7373
void LoadProfilerPatches()
74-
{
74+
{
7575
*(int*)0x800379b0 = JAL(Hook_DrawOTag);
7676
}
7777

@@ -80,15 +80,15 @@ void RunAllBenchmarks()
8080
{
8181
if(doThisOnce != 0)
8282
return;
83-
83+
8484
int r = 0;
8585
doThisOnce = 1;
86-
86+
8787
ND_ResetRCnt(0xf2000001);
8888
RunCollRW();
8989
r = ND_GetRCnt(0xf2000001);
9090
timeRW_COLL_ProjectPointToEdge = r;
91-
91+
9292
ND_ResetRCnt(0xf2000001);
9393
RunCollOG();
9494
r = ND_GetRCnt(0xf2000001);
@@ -104,25 +104,25 @@ void Hook_DrawOTag(int a)
104104
// Why does this break on console?
105105
// struct GameTracker* gGT = sdata->gGT;
106106
struct GameTracker* gGT = (struct GameTracker*)0x80096b20;
107-
107+
108108
if((gGT->gameMode1 & (LOADING|1)) == 0)
109109
{
110110
// reset depth to CLOSEST
111111
gGT->pushBuffer_UI.ptrOT =
112-
gGT->otSwapchainDB[gGT->swapchainIndex];
112+
gGT->otSwapchainDB[gGT->swapchainIndex];
113113

114114
char string[128];
115-
115+
116116
ND_DecalFont_DrawLine("1s 15720", 0x14, 0x8, FONT_SMALL, 0);
117-
117+
118118
ND_sprintf(string, "RW %d", timeRW_COLL_ProjectPointToEdge);
119119
ND_DecalFont_DrawLine(string, 0x14, 0x10, FONT_SMALL, 0);
120-
120+
121121
ND_sprintf(string, "OG %d", timeOG_COLL_ProjectPointToEdge);
122122
ND_DecalFont_DrawLine(string, 0x14, 0x18, FONT_SMALL, 0);
123123
}
124-
124+
125125
ND_DrawOTag(a);
126126
}
127127

128-
#endif
128+
#endif // REWRITE_PROFILER

0 commit comments

Comments
 (0)