Skip to content

Commit e774811

Browse files
committed
More Tera Multi-Farmer fixes.
1 parent 7fcbff3 commit e774811

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

SerialPrograms/Source/NintendoSwitch/Framework/NintendoSwitch_MultiSwitchProgramSession.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,11 @@ void MultiSwitchProgramSession::internal_run_program(){
203203
// m_setup->wait_for_all_requests();
204204
env.add_overlay_log_to_all_consoles("- Program Finished -");
205205
logger().log("Program finished normally!", COLOR_BLUE);
206-
}catch (OperationCancelledException&){
206+
}catch (OperationCancelledException& e){
207+
logger().log("Program Stopped (OperationCancelledException): " + e.message(), COLOR_RED);
207208
env.add_overlay_log_to_all_consoles("- Program Stopped -");
208-
}catch (ProgramCancelledException&){
209+
}catch (ProgramCancelledException& e){
210+
logger().log("Program Stopped (ProgramCancelledException): " + e.message(), COLOR_BLUE);
209211
env.add_overlay_log_to_all_consoles("- Program Stopped -");
210212
}catch (ProgramFinishedException& e){
211213
logger().log("Program finished early!", COLOR_BLUE);

SerialPrograms/Source/PokemonSV/Programs/TeraRaids/PokemonSV_TeraMultiFarmer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ bool TeraMultiFarmer::run_raid(
457457
CancellableHolder<RaidWaiter> raid_waiter(scope);
458458
CancellableHolder<CancellableScope> joiner_scope((CancellableScope&)raid_waiter);
459459

460-
env.run_in_parallel(raid_waiter, [&](ConsoleHandle& console, ProControllerContext& context){
460+
env.run_in_parallel(scope, [&](ConsoleHandle& console, ProControllerContext& context){
461461
try{
462462
if (console.index() == host_index){
463463
start_sequence_host(

SerialPrograms/Source/PokemonSV/Programs/TeraRaids/PokemonSV_TeraRoutines.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ void enter_tera_search(
220220
OverworldWatcher overworld(stream.logger(), COLOR_RED);
221221
MainMenuWatcher main_menu(COLOR_YELLOW);
222222
PokePortalWatcher poke_portal(COLOR_GREEN);
223-
TeraRaidSearchWatcher raid_search(COLOR_CYAN);
223+
TeraRaidSearchWatcher raid_search(COLOR_CYAN, std::chrono::milliseconds(500));
224224
CodeEntryWatcher code_entry(COLOR_PURPLE);
225225
AdvanceDialogWatcher dialog(COLOR_BLUE);
226226
context.wait_for_all_requests();

0 commit comments

Comments
 (0)