Skip to content

Commit

Permalink
Fix Qt 6.5.3 build. Cleanup some error reports. Turn on error reports…
Browse files Browse the repository at this point in the history
… by default for beta.
  • Loading branch information
Mysticial committed Sep 28, 2023
1 parent 1657f72 commit 1868ce2
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ GlobalSettings::GlobalSettings()
"<b>Send Error Reports:</b><br>"
"Send error reports to the " + PROGRAM_NAME + " server to help them resolve issues and improve the program.",
LockWhileRunning::LOCKED,
false
IS_BETA_VERSION
)
, STATS_FILE(
false,
Expand Down
2 changes: 1 addition & 1 deletion SerialPrograms/Source/CommonFramework/Globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace PokemonAutomation{
const bool IS_BETA_VERSION = true;
const int PROGRAM_VERSION_MAJOR = 0;
const int PROGRAM_VERSION_MINOR = 41;
const int PROGRAM_VERSION_PATCH = 2;
const int PROGRAM_VERSION_PATCH = 3;

const std::string PROGRAM_VERSION_BASE =
"v" + std::to_string(PROGRAM_VERSION_MAJOR) +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ bool FlagNavigationAir::run_state(AsyncCommandSession& commands, WallClock times
}
if (m_dialog_detector.detected()){
throw OperationFailedException(
ErrorReport::SEND_ERROR_REPORT, m_console,
ErrorReport::NO_ERROR_REPORT, m_console,
"Potential ambush by Miss Fortune sister.",
true
);
}
if (m_find_flag_failed.load(std::memory_order_acquire)){
throw OperationFailedException(
ErrorReport::SEND_ERROR_REPORT, m_console,
ErrorReport::NO_ERROR_REPORT, m_console,
"Unable to find flag.",
true
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ void goto_camp_from_overworld(
if (current_time() - start > std::chrono::seconds(60)){
// dump_image(console.logger(), env.program_info(), "EscapeFromAttack", console.video().snapshot());
throw OperationFailedException(
ErrorReport::SEND_ERROR_REPORT, console,
ErrorReport::NO_ERROR_REPORT, console,
"Unable to escape from being attacked.",
true
);
Expand Down Expand Up @@ -454,7 +454,7 @@ void goto_any_camp_from_overworld(
if (current_time() - start > std::chrono::seconds(60)){
// dump_image(console.logger(), env.program_info(), "EscapeFromAttack", console.video().snapshot());
throw OperationFailedException(
ErrorReport::SEND_ERROR_REPORT, console,
ErrorReport::NO_ERROR_REPORT, console,
"Unable to escape from being attacked.",
true
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void find_and_center_on_sky(
while (true){
if (current_time() - start > std::chrono::minutes(1)){
throw OperationFailedException(
ErrorReport::SEND_ERROR_REPORT, console,
ErrorReport::NO_ERROR_REPORT, console,
"Failed to find the sky after 1 minute. (state = " + std::to_string((int)state) + ")",
true
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ CatchResults basic_catcher(
}

last_move_attack = false;
#if 0
pbf_press_button(context, BUTTON_X, 20, 105);
#if 0
context.wait_for_all_requests();
BattleBallReader reader(console, language, COLOR_RED);
int16_t qty = move_to_ball(reader, console, context, ball_slug);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
*/

#include <algorithm>
#include "Common/Cpp/Containers/FixedLimitVector.tpp"
#include "Common/Cpp/Concurrency/AsyncDispatcher.h"
#include "NintendoSwitch/Commands/NintendoSwitch_Commands_PushButtons.h"
Expand Down

0 comments on commit 1868ce2

Please sign in to comment.