Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

change startup gui override macro to just the TIME button #147

Merged
merged 1 commit into from
Sep 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
change startup gui override macro to just the TIME button
  • Loading branch information
BrianPugh committed Sep 6, 2021
commit d5913d8f725e252932eb45e66d649c65a6abc365
6 changes: 3 additions & 3 deletions Core/Src/retro-go/rg_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@ void app_main(void)
// favorites_init();

// Start the previously running emulator directly if it's a valid pointer.
// If the user holds down any key more than the power button,
// start the retro-go gui as a fallback.
// If the user holds down the TIME button during startup,start the retro-go
// gui instead of the last ROM as a fallback.
retro_emulator_file_t *file = odroid_settings_StartupFile_get();
if (emulator_is_file_valid(file) && ((GW_GetBootButtons() & ~B_POWER) == 0)) {
if (emulator_is_file_valid(file) && ((GW_GetBootButtons() & B_TIME) == 0)) {
emulator_start(file, true, true);
} else {
retro_loop();
Expand Down