Add Debug Pause

This commit is contained in:
Kiloku 2025-02-02 23:00:59 -03:00 committed by Lywx
parent fb130d48ba
commit e3378709e4
2 changed files with 7 additions and 2 deletions

View File

@ -7167,8 +7167,9 @@ void Play_Main(void) {
}
gDrawMode = DRAW_PLAY;
Play_Update();
if (CVarGetInteger("gDebugPause", 0) == 0){
Play_Update();
}
if ((gControllerPress[gMainController].button & START_BUTTON) &&
(gPlayer[0].state == PLAYERSTATE_LEVEL_INTRO) &&

View File

@ -713,6 +713,10 @@ void DrawDebugMenu() {
.tooltip = "Jump to credits at the main menu"
});
if (gGameState == GSTATE_PLAY){
UIWidgets::CVarCheckbox("Debug Pause", "gDebugPause");
}
if (CVarGetInteger(StringHelper::Sprintf("gCheckpoint.%d.Set", gCurrentLevel).c_str(), 0)) {
if (UIWidgets::Button("Clear Checkpoint")) {
CVarClear(StringHelper::Sprintf("gCheckpoint.%d.Set", gCurrentLevel).c_str());