mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2025-04-25 03:51:35 +02:00
[SC64][SW] Added an option to force load menu when boot mode is ROM/DDIPL and R button is held
This commit is contained in:
parent
0739ca624c
commit
a3d4082384
@ -3,6 +3,7 @@
|
||||
#include "error.h"
|
||||
#include "init.h"
|
||||
#include "io.h"
|
||||
#include "joybus.h"
|
||||
#include "menu.h"
|
||||
#include "sc64.h"
|
||||
|
||||
@ -22,6 +23,20 @@ void main (void) {
|
||||
boot_params.cic_seed = (sc64_boot_params.cic_seed & 0xFF);
|
||||
boot_params.detect_cic_seed = (sc64_boot_params.cic_seed == CIC_SEED_AUTO);
|
||||
|
||||
switch (sc64_boot_params.boot_mode) {
|
||||
case BOOT_MODE_ROM:
|
||||
case BOOT_MODE_DDIPL: {
|
||||
joybus_controller_state_t controller_state;
|
||||
if (joybus_get_controller_state(0, &controller_state) && controller_state.r) {
|
||||
sc64_boot_params.boot_mode = BOOT_MODE_MENU;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch (sc64_boot_params.boot_mode) {
|
||||
case BOOT_MODE_MENU:
|
||||
menu_load();
|
||||
|
Loading…
x
Reference in New Issue
Block a user