Skip to content

Commit 1fa53f9

Browse files
committed
fix
1 parent 7617c2b commit 1fa53f9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

SerialPrograms/Source/NintendoSwitch/Programs/NintendoSwitch_GameEntry.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,8 @@ void start_game_from_home_with_inference(
452452

453453
pbf_press_button(context, BUTTON_A, 160ms, 840ms);
454454

455-
for (int c = 0; c < 20; c++){
455+
WallClock deadline = current_time() + std::chrono::minutes(2);
456+
while (current_time() < deadline){
456457
HomeMenuWatcher home(console, std::chrono::milliseconds(2000));
457458
StartGameUserSelectWatcher user_select(console, COLOR_GREEN);
458459
UpdateMenuWatcher update_menu(console, COLOR_PURPLE);
@@ -510,7 +511,7 @@ void start_game_from_home_with_inference(
510511

511512
OperationFailedException::fire(
512513
ErrorReport::SEND_ERROR_REPORT,
513-
"start_game_from_home_with_inference(): Failed to start game after 20 actions.",
514+
"start_game_from_home_with_inference(): Failed to start game after 2 minutes.",
514515
console
515516
);
516517
}

0 commit comments

Comments
 (0)