Skip briefing developer option

This commit is contained in:
Sonic Dreamcaster 2024-11-24 16:54:36 -03:00
parent b3ad7e8ab8
commit bda925b33f
2 changed files with 23 additions and 19 deletions

View File

@ -112,7 +112,7 @@ void Map_LevelSelect(void) {
} }
// Bypass briefing // Bypass briefing
#if DEBUG_SKIP_BRIEFING if (CVarGetInteger("gSkipBriefing", 0) == 1) {
if ((timer == 0) && (startLevel == 1)) { if ((timer == 0) && (startLevel == 1)) {
if ((sMapState == 2) && (sMapSubState > 0)) { if ((sMapState == 2) && (sMapSubState > 0)) {
if (sCurrentPlanetId == PLANET_VENOM) { if (sCurrentPlanetId == PLANET_VENOM) {
@ -134,5 +134,5 @@ void Map_LevelSelect(void) {
} }
} }
} }
#endif }
} }

View File

@ -485,6 +485,10 @@ void DrawDebugMenu() {
.tooltip = "Allows you to select any level from the main menu" .tooltip = "Allows you to select any level from the main menu"
}); });
UIWidgets::CVarCheckbox("Skip Briefing", "gSkipBriefing", {
.tooltip = "Allows you to skip the briefing sequence in level select"
});
UIWidgets::CVarCheckbox("Enable Expert Mode", "gForceExpertMode", { UIWidgets::CVarCheckbox("Enable Expert Mode", "gForceExpertMode", {
.tooltip = "Allows you to force expert mode" .tooltip = "Allows you to force expert mode"
}); });