Skip to content

Commit c4fc0ea

Browse files
committed
Remove a bunch of deprecated SwSh programs.
1 parent 3f4314a commit c4fc0ea

19 files changed

Lines changed: 0 additions & 1154 deletions

SerialPrograms/Source/PokemonSwSh/Commands/PokemonSwSh_Commands_GameEntry.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include "NintendoSwitch/NintendoSwitch_Settings.h"
88
#include "NintendoSwitch/Commands/NintendoSwitch_Commands_PushButtons.h"
99
#include "NintendoSwitch/Commands/NintendoSwitch_Commands_Superscalar.h"
10-
#include "NintendoSwitch/Programs/NintendoSwitch_GameEntry.h"
1110
#include "PokemonSwSh/PokemonSwSh_Settings.h"
1211
#include "PokemonSwSh_Commands_GameEntry.h"
1312
//#include "PokemonSwSh_Messages_GameEntry.h"

SerialPrograms/Source/PokemonSwSh/PokemonSwSh_Panels.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "Programs/DateSpamFarmers/PokemonSwSh_DateSpam-PokeJobsFarmer.h"
3131
#include "Programs/DateSpamFarmers/PokemonSwSh_DateSpam-WattTraderFarmer.h"
3232

33-
#include "Programs/DenHunting/PokemonSwSh_BeamReset.h"
3433
#include "Programs/DenHunting/PokemonSwSh_PurpleBeamFinder.h"
3534
#include "Programs/DenHunting/PokemonSwSh_EventBeamFinder.h"
3635
#include "Programs/DenHunting/PokemonSwSh_DaySkipperJPN.h"
@@ -57,11 +56,6 @@
5756
#include "Programs/EggPrograms/PokemonSwSh_GodEggItemDupe.h"
5857

5958
#include "Programs/ShinyHuntUnattended/PokemonSwSh_MultiGameFossil.h"
60-
#include "Programs/ShinyHuntUnattended/PokemonSwSh_ShinyHuntUnattended-Regi.h"
61-
#include "Programs/ShinyHuntUnattended/PokemonSwSh_ShinyHuntUnattended-SwordsOfJustice.h"
62-
#include "Programs/ShinyHuntUnattended/PokemonSwSh_ShinyHuntUnattended-StrongSpawn.h"
63-
#include "Programs/ShinyHuntUnattended/PokemonSwSh_ShinyHuntUnattended-Regigigas2.h"
64-
#include "Programs/ShinyHuntUnattended/PokemonSwSh_ShinyHuntUnattended-IoATrade.h"
6559
#include "Programs/ShinyHuntUnattended/PokemonSwSh_CurryHunter.h"
6660

6761
#include "Programs/ShinyHuntAutonomous/PokemonSwSh_ShinyHuntAutonomous-Regi.h"
@@ -193,14 +187,8 @@ std::vector<PanelEntry> PanelListFactory::make_panels() const{
193187
#if 0
194188
ret.emplace_back("---- Deprecated Programs ----");
195189
ret.emplace_back(make_single_switch_program<BallThrower_Descriptor, BallThrower>());
196-
ret.emplace_back(make_single_switch_program<BeamReset_Descriptor, BeamReset>());
197190
ret.emplace_back(make_single_switch_program<EggCombined2_Descriptor, EggCombined2>());
198191
ret.emplace_back(make_single_switch_program<EggSuperCombined2_Descriptor, EggSuperCombined2>());
199-
ret.emplace_back(make_single_switch_program<ShinyHuntUnattendedRegi_Descriptor, ShinyHuntUnattendedRegi>());
200-
ret.emplace_back(make_single_switch_program<ShinyHuntUnattendedSwordsOfJustice_Descriptor, ShinyHuntUnattendedSwordsOfJustice>());
201-
ret.emplace_back(make_single_switch_program<ShinyHuntUnattendedStrongSpawn_Descriptor, ShinyHuntUnattendedStrongSpawn>());
202-
ret.emplace_back(make_single_switch_program<ShinyHuntUnattendedRegigigas2_Descriptor, ShinyHuntUnattendedRegigigas2>());
203-
ret.emplace_back(make_single_switch_program<ShinyHuntUnattendedIoATrade_Descriptor, ShinyHuntUnattendedIoATrade>());
204192
#endif
205193

206194
if (PreloadSettings::instance().DEVELOPER_MODE){

SerialPrograms/Source/PokemonSwSh/Programs/DenHunting/PokemonSwSh_BeamReset.cpp

Lines changed: 0 additions & 91 deletions
This file was deleted.

SerialPrograms/Source/PokemonSwSh/Programs/DenHunting/PokemonSwSh_BeamReset.h

Lines changed: 0 additions & 47 deletions
This file was deleted.

SerialPrograms/Source/PokemonSwSh/Programs/PokemonSwSh_GameEntry.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -171,23 +171,6 @@ void reset_game_from_home_with_inference(
171171
// Wait for game to load.
172172
enter_loading_game(console, context, backup_save, post_wait_time);
173173
}
174-
void reset_game_from_home_old(
175-
ConsoleHandle& console, ProControllerContext& context,
176-
bool tolerate_update_menu
177-
){
178-
if (!ConsoleSettings::instance().START_GAME_REQUIRES_INTERNET && !tolerate_update_menu){
179-
fast_reset_game(
180-
context,
181-
GameSettings::instance().START_GAME_WAIT0,
182-
GameSettings::instance().ENTER_GAME_MASH0,
183-
GameSettings::instance().ENTER_GAME_WAIT0
184-
);
185-
return;
186-
}
187-
188-
close_game_from_home(console, context);
189-
start_game_from_home(context, tolerate_update_menu, 0, 0, false);
190-
}
191174

192175

193176

SerialPrograms/Source/PokemonSwSh/Programs/PokemonSwSh_GameEntry.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ void reset_game_from_home_with_inference(
5454
bool backup_save = false,
5555
Milliseconds post_wait_time = Milliseconds(1000)
5656
);
57-
void reset_game_from_home_old(
58-
ConsoleHandle& console, ProControllerContext& device,
59-
bool tolerate_update_menu
60-
);
6157

6258

6359

SerialPrograms/Source/PokemonSwSh/Programs/ShinyHuntUnattended/PokemonSwSh_ShinyHuntTools.cpp

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,14 @@
44
*
55
*/
66

7-
#include "NintendoSwitch/NintendoSwitch_Settings.h"
87
#include "NintendoSwitch/Commands/NintendoSwitch_Commands_PushButtons.h"
9-
#include "NintendoSwitch/Commands/NintendoSwitch_Commands_Superscalar.h"
10-
#include "NintendoSwitch/Programs/NintendoSwitch_GameEntry.h"
11-
#include "PokemonSwSh/PokemonSwSh_Settings.h"
12-
//#include "PokemonSwSh/Commands/PokemonSwSh_Commands_GameEntry.h"
13-
#include "PokemonSwSh/Commands/PokemonSwSh_Commands_DateSpam.h"
148
#include "PokemonSwSh_ShinyHuntTools.h"
159

1610
namespace PokemonAutomation{
1711
namespace NintendoSwitch{
1812
namespace PokemonSwSh{
1913

2014

21-
void run_away_with_lights(ProControllerContext& context){
22-
// set_leds(context, true);
23-
pbf_press_dpad(context, DPAD_UP, 80ms, 0ms);
24-
pbf_press_button(context, BUTTON_A, 80ms, 3000ms);
25-
// set_leds(context, false);
26-
}
2715
void enter_summary(ProControllerContext& context, bool regi_move_right){
2816
pbf_press_dpad(context, DPAD_DOWN, 80ms, 0ms);
2917
pbf_press_button(context, BUTTON_A, 80ms, 2000ms);
@@ -34,46 +22,6 @@ void enter_summary(ProControllerContext& context, bool regi_move_right){
3422
pbf_press_dpad(context, DPAD_DOWN, 80ms, 0ms);
3523
pbf_press_button(context, BUTTON_A, 80ms, 80ms); // For Regi, this clears the dialog after running.
3624
}
37-
void close_game_if_overworld(
38-
ConsoleHandle& console, ProControllerContext& context,
39-
bool touch_date,
40-
uint8_t rollback_hours
41-
){
42-
// Enter Y-COMM.
43-
ssf_press_button(context, BUTTON_Y, GameSettings::instance().OPEN_YCOMM_DELAY0, 80ms);
44-
45-
// Move the cursor as far away from Link Trade and Surprise Trade as possible.
46-
// This is added safety in case connect to internet takes too long.
47-
pbf_press_dpad(context, DPAD_UP, 40ms, 0ms);
48-
pbf_move_right_joystick(context, {0, +1}, 40ms, 0ms);
49-
pbf_press_dpad(context, DPAD_RIGHT, 40ms, 0ms);
50-
51-
// Connect to internet.
52-
pbf_press_button(context, BUTTON_PLUS, 80ms, 1000ms);
53-
54-
// Enter Switch Home.
55-
pbf_press_button(context, BUTTON_HOME, 160ms, GameSettings::instance().GAME_TO_HOME_DELAY_SAFE0);
56-
57-
if (touch_date){
58-
touch_date_from_home(console, context, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
59-
}
60-
if (rollback_hours > 0){
61-
rollback_hours_from_home(console, context, rollback_hours, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
62-
}
63-
64-
// Enter profile.
65-
pbf_press_dpad(context, DPAD_UP, 80ms, 80ms);
66-
pbf_press_button(context, BUTTON_A, 80ms, GameSettings::instance().ENTER_PROFILE_DELAY0);
67-
68-
// Back out.
69-
pbf_press_dpad(context, DPAD_LEFT, 80ms, 80ms);
70-
pbf_press_button(context, BUTTON_B, 80ms, 1000ms);
71-
pbf_press_dpad(context, DPAD_DOWN, 80ms, 80ms);
72-
73-
// Close and restart game.
74-
close_game_from_home(console, context);
75-
pbf_press_button(context, BUTTON_HOME, 80ms, 1520ms);
76-
}
7725

7826

7927
}

SerialPrograms/Source/PokemonSwSh/Programs/ShinyHuntUnattended/PokemonSwSh_ShinyHuntTools.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,14 @@
77
#ifndef PokemonAutomation_PokemonSwSh_ShinyHuntingTools_H
88
#define PokemonAutomation_PokemonSwSh_ShinyHuntingTools_H
99

10-
#include "CommonFramework/Tools/VideoStream.h"
1110
#include "NintendoSwitch/Controllers/Procon/NintendoSwitch_ProController.h"
12-
#include "NintendoSwitch/NintendoSwitch_ConsoleHandle.h"
1311

1412
namespace PokemonAutomation{
1513
namespace NintendoSwitch{
1614
namespace PokemonSwSh{
1715

1816

19-
void run_away_with_lights(ProControllerContext& context);
2017
void enter_summary(ProControllerContext& context, bool regi_move_right);
21-
void close_game_if_overworld(
22-
ConsoleHandle& console, ProControllerContext& context,
23-
bool touch_date,
24-
uint8_t rollback_hours
25-
);
2618

2719

2820

0 commit comments

Comments
 (0)