Add file select skip define (#723)

* add config define to skip file select

* implement file select skip

* Add more coverage to the skip file select tweak

---------

Co-authored-by: someone2639 <someone2639@gmail.com>
This commit is contained in:
someone2639
2023-12-14 23:27:50 -05:00
committed by GitHub
parent 1646702393
commit 76dae5e8dd
2 changed files with 10 additions and 0 deletions

View File

@@ -17,3 +17,9 @@
* Skips the title/splash screen (Super Mario 64 logo).
*/
// #define SKIP_TITLE_SCREEN
/**
* Skips the File Select screen
*/
// #define SKIP_FILE_SELECT

View File

@@ -6,6 +6,8 @@
#include "segment_symbols.h"
#include "level_commands.h"
#include "config/config_cutscenes.h"
#include "game/area.h"
#include "game/level_update.h"
#include "menu/file_select.h"
@@ -19,6 +21,7 @@
#include "levels/menu/header.h"
const LevelScript level_main_menu_entry_file_select[] = {
#ifndef SKIP_FILE_SELECT
INIT_LEVEL(),
LOAD_GODDARD(),
LOAD_LEVEL_DATA(menu),
@@ -53,6 +56,7 @@ const LevelScript level_main_menu_entry_file_select[] = {
SLEEP(/*frames*/ 16),
CLEAR_LEVEL(),
SLEEP_BEFORE_EXIT(/*frames*/ 1),
#endif // SKIP_FILE_SELECT
SET_REG(/*value*/ START_LEVEL),
EXIT_AND_EXECUTE(/*seg*/ SEGMENT_GLOBAL_LEVEL_SCRIPT, _scriptsSegmentRomStart, _scriptsSegmentRomEnd, level_main_scripts_entry),
};