Skip to content

Commit 6b793e3

Browse files
committed
Don't over-mash into the game.
1 parent 950cc85 commit 6b793e3

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

SerialPrograms/Source/PokemonLZA/PokemonLZA_Settings.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ GameSettings::GameSettings()
2828
LockMode::LOCK_WHILE_RUNNING,
2929
"40 s"
3030
)
31-
, ENTER_GAME_MASH0(
32-
"<b>Enter Game Mash:</b><br>Mash A for this long to enter the game.",
33-
LockMode::LOCK_WHILE_RUNNING,
34-
"3000 ms"
35-
)
3631
, ENTER_GAME_WAIT(
3732
"<b>Enter Game Wait:</b><br>Wait this long for the game to enter the overworld.",
3833
LockMode::LOCK_WHILE_RUNNING,
@@ -46,7 +41,6 @@ GameSettings::GameSettings()
4641

4742
PA_ADD_STATIC(m_start_game_timings);
4843
PA_ADD_OPTION(START_GAME_WAIT);
49-
PA_ADD_OPTION(ENTER_GAME_MASH0);
5044
PA_ADD_OPTION(ENTER_GAME_WAIT);
5145

5246
PA_ADD_STATIC(m_advanced_options);

SerialPrograms/Source/PokemonLZA/PokemonLZA_Settings.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class GameSettings : public BatchOption{
2626

2727
SectionDividerOption m_start_game_timings;
2828
MillisecondsOption START_GAME_WAIT;
29-
MillisecondsOption ENTER_GAME_MASH0;
3029
MillisecondsOption ENTER_GAME_WAIT;
3130

3231
SectionDividerOption m_advanced_options;

SerialPrograms/Source/PokemonLZA/Programs/PokemonLZA_GameEntry.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ bool reset_game_to_gamemenu(
3232
// mash A to enter the game and wait until the black screen is gone.
3333
bool gamemenu_to_ingame(
3434
VideoStream& stream, ProControllerContext& context,
35-
Milliseconds mash_duration, Milliseconds enter_game_timeout
35+
Milliseconds enter_game_timeout
3636
){
3737
stream.log("Mashing A to enter game...");
3838
BlackScreenOverWatcher detector(COLOR_RED, {0.1, 0.04, 0.8, 0.3});
39-
pbf_mash_button(context, BUTTON_A, mash_duration);
39+
pbf_mash_button(context, BUTTON_A, 500ms);
4040
context.wait_for_all_requests();
4141
stream.log("Waiting to enter game...");
4242
int ret = wait_until(
@@ -57,7 +57,6 @@ bool reset_game_from_home(
5757
ProgramEnvironment& env,
5858
ConsoleHandle& console, ProControllerContext& context,
5959
bool backup_save,
60-
Milliseconds enter_game_mash,
6160
Milliseconds enter_game_timeout,
6261
Milliseconds post_wait_time
6362
){
@@ -75,7 +74,6 @@ bool reset_game_from_home(
7574

7675
ok &= gamemenu_to_ingame(
7776
console, context,
78-
enter_game_mash,
7977
enter_game_timeout
8078
);
8179
if (!ok){
@@ -95,7 +93,6 @@ bool reset_game_from_home(
9593
return reset_game_from_home(
9694
env, console, context,
9795
backup_save,
98-
GameSettings::instance().ENTER_GAME_MASH0,
9996
GameSettings::instance().ENTER_GAME_WAIT,
10097
post_wait_time
10198
);

0 commit comments

Comments
 (0)