Skip to content

Commit

Permalink
fix SwSh_BerryFarmer2 not sending program finished notification
Browse files Browse the repository at this point in the history
  • Loading branch information
fyex committed Feb 27, 2024
1 parent 790c1d1 commit 12b0139
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "CommonFramework/Exceptions/ProgramFinishedException.h"
#include "CommonFramework/Options/Environment/ThemeSelectorOption.h"
#include "CommonFramework/InferenceInfra/InferenceRoutines.h"
#include "CommonFramework/VideoPipeline/VideoFeed.h"
#include "NintendoSwitch/Commands/NintendoSwitch_Commands_PushButtons.h"
#include "Pokemon/Pokemon_Strings.h"
#include "PokemonSwSh/PokemonSwSh_Settings.h"
Expand Down Expand Up @@ -346,7 +347,8 @@ void BerryFarmer2::program(SingleSwitchProgramEnvironment& env, BotBaseContext&
pbf_press_button(context, BUTTON_HOME, 10, 5);
pbf_mash_button(context, BUTTON_B, GameSettings::instance().GAME_TO_HOME_DELAY_FAST - 15);
}

VideoSnapshot screen = env.console.video().snapshot();
send_program_finished_notification(env, NOTIFICATION_PROGRAM_FINISH, "", screen);
}
}

Expand Down

0 comments on commit 12b0139

Please sign in to comment.