Developer: add ending debug option

This commit is contained in:
Sonic Dreamcaster 2024-11-26 05:23:08 -03:00
parent 58a6d76af3
commit 9c41610be5
2 changed files with 12 additions and 2 deletions

View File

@ -3388,8 +3388,14 @@ void Title_NextState_OptionMenu(void) {
if (sWipeHeight < 120) {
sWipeHeight += 18;
} else {
gGameState = GSTATE_MENU;
// gGameState = GSTATE_ENDING;
if (CVarGetInteger("gDebugEnding", 0) == 1) {
gGameState = GSTATE_ENDING;
gGreatFoxIntact = 1;
gLeveLClearStatus[LEVEL_ZONESS] = 1;
gLeveLClearStatus[LEVEL_KATINA] = 1;
} else {
gGameState = GSTATE_MENU;
}
gNextGameStateTimer = 2;
gOptionMenuStatus = OPTION_WAIT;
gDrawMode = DRAW_NONE;

View File

@ -560,6 +560,10 @@ void DrawDebugMenu() {
.tooltip = "Control the Arwing speed"
});
UIWidgets::CVarCheckbox("Debug Ending", "gDebugEnding", {
.tooltip = "Jump to credits at the main menu"
});
if (CVarGetInteger("gCheckpoint.Set", 0)) {
if (UIWidgets::Button("Clear Checkpoint")) {
CVarClear("gCheckpoint.Set");