mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2025-05-01 15:52:48 +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 "error.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
|
#include "joybus.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "sc64.h"
|
#include "sc64.h"
|
||||||
|
|
||||||
@ -22,6 +23,20 @@ void main (void) {
|
|||||||
boot_params.cic_seed = (sc64_boot_params.cic_seed & 0xFF);
|
boot_params.cic_seed = (sc64_boot_params.cic_seed & 0xFF);
|
||||||
boot_params.detect_cic_seed = (sc64_boot_params.cic_seed == CIC_SEED_AUTO);
|
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) {
|
switch (sc64_boot_params.boot_mode) {
|
||||||
case BOOT_MODE_MENU:
|
case BOOT_MODE_MENU:
|
||||||
menu_load();
|
menu_load();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user