mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-10 19:20:13 +00:00
Replace VI_MODE_EDITOR_INACTIVE
This commit is contained in:
parent
8a033cb723
commit
f7c4cae7c3
1 changed files with 2 additions and 8 deletions
|
@ -1,12 +1,6 @@
|
||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "terminal.h"
|
#include "terminal.h"
|
||||||
|
|
||||||
#if OOT_DEBUG
|
|
||||||
#define VI_MODE_EDITOR_INACTIVE (R_VI_MODE_EDIT_STATE == VI_MODE_EDIT_STATE_INACTIVE)
|
|
||||||
#else
|
|
||||||
#define VI_MODE_EDITOR_INACTIVE true
|
|
||||||
#endif
|
|
||||||
|
|
||||||
SpeedMeter D_801664D0;
|
SpeedMeter D_801664D0;
|
||||||
VisCvg sVisCvg;
|
VisCvg sVisCvg;
|
||||||
VisZBuf sVisZBuf;
|
VisZBuf sVisZBuf;
|
||||||
|
@ -442,7 +436,7 @@ void GameState_Init(GameState* gameState, GameStateFunc init, GraphicsContext* g
|
||||||
VisCvg_Init(&sVisCvg);
|
VisCvg_Init(&sVisCvg);
|
||||||
VisZBuf_Init(&sVisZBuf);
|
VisZBuf_Init(&sVisZBuf);
|
||||||
VisMono_Init(&sVisMono);
|
VisMono_Init(&sVisMono);
|
||||||
if (VI_MODE_EDITOR_INACTIVE) {
|
if (!OOT_DEBUG || (R_VI_MODE_EDIT_STATE == VI_MODE_EDIT_STATE_INACTIVE)) {
|
||||||
ViMode_Init(&sViMode);
|
ViMode_Init(&sViMode);
|
||||||
}
|
}
|
||||||
SpeedMeter_Init(&D_801664D0);
|
SpeedMeter_Init(&D_801664D0);
|
||||||
|
@ -473,7 +467,7 @@ void GameState_Destroy(GameState* gameState) {
|
||||||
VisCvg_Destroy(&sVisCvg);
|
VisCvg_Destroy(&sVisCvg);
|
||||||
VisZBuf_Destroy(&sVisZBuf);
|
VisZBuf_Destroy(&sVisZBuf);
|
||||||
VisMono_Destroy(&sVisMono);
|
VisMono_Destroy(&sVisMono);
|
||||||
if (VI_MODE_EDITOR_INACTIVE) {
|
if (!OOT_DEBUG || (R_VI_MODE_EDIT_STATE == VI_MODE_EDIT_STATE_INACTIVE)) {
|
||||||
ViMode_Destroy(&sViMode);
|
ViMode_Destroy(&sViMode);
|
||||||
}
|
}
|
||||||
THA_Destroy(&gameState->tha);
|
THA_Destroy(&gameState->tha);
|
||||||
|
|
Loading…
Reference in a new issue