From 3370951436ed7cc85d68f9e9c698c7b4853ec804 Mon Sep 17 00:00:00 2001 From: Mysticial Date: Mon, 2 Oct 2023 16:01:56 -0700 Subject: [PATCH] Put unfinished table back behind dev mode. --- .../General/PokemonSV_StatsResetBloodmoon.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/SerialPrograms/Source/PokemonSV/Programs/General/PokemonSV_StatsResetBloodmoon.cpp b/SerialPrograms/Source/PokemonSV/Programs/General/PokemonSV_StatsResetBloodmoon.cpp index 8a097356b..0ff1c9153 100644 --- a/SerialPrograms/Source/PokemonSV/Programs/General/PokemonSV_StatsResetBloodmoon.cpp +++ b/SerialPrograms/Source/PokemonSV/Programs/General/PokemonSV_StatsResetBloodmoon.cpp @@ -4,6 +4,7 @@ * */ +#include "CommonFramework/GlobalSettingsPanel.h" #include "CommonFramework/Exceptions/OperationFailedException.h" #include "CommonFramework/Options/LanguageOCROption.h" #include "CommonFramework/Notifications/ProgramNotifications.h" @@ -31,7 +32,7 @@ namespace NintendoSwitch{ namespace PokemonSV{ using namespace Pokemon; - + StatsResetBloodmoon_Descriptor::StatsResetBloodmoon_Descriptor() : SingleSwitchProgramDescriptor( "PokemonSV:StatsResetBloodmoon", @@ -43,7 +44,7 @@ StatsResetBloodmoon_Descriptor::StatsResetBloodmoon_Descriptor() PABotBaseLevel::PABOTBASE_12KB ) {} -struct StatsResetBloodmoon_Descriptor::Stats : public StatsTracker { +struct StatsResetBloodmoon_Descriptor::Stats : public StatsTracker{ Stats() : resets(m_stats["Resets"]) , catches(m_stats["Catches"]) @@ -60,7 +61,7 @@ struct StatsResetBloodmoon_Descriptor::Stats : public StatsTracker { std::atomic& matches; std::atomic& errors; }; -std::unique_ptr StatsResetBloodmoon_Descriptor::make_stats() const { +std::unique_ptr StatsResetBloodmoon_Descriptor::make_stats() const{ return std::unique_ptr(new Stats()); } StatsResetBloodmoon::StatsResetBloodmoon() @@ -138,7 +139,9 @@ StatsResetBloodmoon::StatsResetBloodmoon() PA_ADD_OPTION(BALL_SELECT); PA_ADD_OPTION(TRY_TO_TERASTILLIZE); PA_ADD_OPTION(FILTERS); - PA_ADD_OPTION(FILTERS0); + if (PreloadSettings::instance().DEVELOPER_MODE){ + PA_ADD_OPTION(FILTERS0); + } PA_ADD_OPTION(GO_HOME_WHEN_DONE); PA_ADD_OPTION(NOTIFICATIONS); }