Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions SerialPrograms/Source/PokemonFRLG/PokemonFRLG_Navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,11 @@ void flee_battle(ConsoleHandle& console, ProControllerContext& context){
if (ret3 == 0){
console.log("Successfully fled the battle.");
}else{
OperationFailedException::fire(
ErrorReport::SEND_ERROR_REPORT,
"flee_battle(): Unable to flee from battle.",
console
);
console.log("flee_battle(): failed to detect transition to overworld. Attempting to open start menu to verify successful flee..");

open_start_menu(console, context);
close_start_menu(console, context);
context.wait_for_all_requests();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ using ProControllerContext = ControllerContext<ProController>;

namespace PokemonFRLG {

// Open the start menu from the overworld
// Open the start menu from the overworld. Throws OperationFailedException if it fails to open the menu after several attempts.
void open_start_menu(ConsoleHandle& console, ProControllerContext& context);

// Close the start menu to return to the overworld
Expand Down