Skip to content

Commit b03686d

Browse files
committed
More SV egg error tweaks.
1 parent f417efc commit b03686d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

SerialPrograms/Source/CommonFramework/Globals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace PokemonAutomation{
2626
const bool IS_BETA_VERSION = true;
2727
const int PROGRAM_VERSION_MAJOR = 0;
2828
const int PROGRAM_VERSION_MINOR = 54;
29-
const int PROGRAM_VERSION_PATCH = 19;
29+
const int PROGRAM_VERSION_PATCH = 20;
3030

3131
const std::string PROGRAM_VERSION_BASE =
3232
"v" + std::to_string(PROGRAM_VERSION_MAJOR) +

SerialPrograms/Source/PokemonSV/Programs/Eggs/PokemonSV_EggHatcher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void EggHatcher::program(SingleSwitchProgramEnvironment& env, ProControllerConte
204204

205205
hatch_one_box(env, context);
206206
}
207-
} catch(OperationFailedException&){
207+
} catch(Exception&){
208208
stats.m_errors++;
209209
env.update_stats();
210210
throw;

SerialPrograms/Source/PokemonSV/Programs/PokemonSV_MenuNavigation.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,13 @@ void open_map_from_overworld(
165165
{overworld, battle}
166166
);
167167
context.wait_for(std::chrono::milliseconds(100));
168+
168169
if (ret == 0){
169170
stream.log("Detected overworld.");
170171
pbf_press_button(context, BUTTON_Y, 20, 105); // open map
171172
}else if (ret == 1){
172173
throw_and_log<UnexpectedBattleException>(
173-
stream.logger(), ErrorReport::SEND_ERROR_REPORT,
174+
stream.logger(), ErrorReport::NO_ERROR_REPORT,
174175
"open_map_from_overworld(): Unexpectedly detected battle.",
175176
stream
176177
);
@@ -206,6 +207,7 @@ void open_map_from_overworld(
206207
{overworld, advance_dialog, prompt_dialog, map, battle}
207208
);
208209
context.wait_for(std::chrono::milliseconds(100));
210+
209211
switch (ret){
210212
case 0:
211213
stream.log("Detected overworld.");
@@ -236,7 +238,7 @@ void open_map_from_overworld(
236238
case 4:
237239
stream.log("Detected battle.");
238240
throw_and_log<UnexpectedBattleException>(
239-
stream.logger(), ErrorReport::SEND_ERROR_REPORT,
241+
stream.logger(), ErrorReport::NO_ERROR_REPORT,
240242
"open_map_from_overworld(): Unexpectedly detected battle.",
241243
stream
242244
);

0 commit comments

Comments
 (0)