diff --git a/TrainingModpackOverlay/include/taunt_toggles.hpp b/TrainingModpackOverlay/include/taunt_toggles.hpp index 9236799..251a433 100644 --- a/TrainingModpackOverlay/include/taunt_toggles.hpp +++ b/TrainingModpackOverlay/include/taunt_toggles.hpp @@ -9,8 +9,7 @@ const std::vector on_off{"Off", "On"}; // clang-format off #define ENUM_CLASS_OnOffFlag(type,x) \ - x(type,On,"On") \ - x(type,Off,"Off") + x(type,On,"On") // clang-format on DEFINE_ENUM_CLASS(OnOffFlag); diff --git a/TrainingModpackOverlay/source/gui_main.cpp b/TrainingModpackOverlay/source/gui_main.cpp index 7349022..6337038 100644 --- a/TrainingModpackOverlay/source/gui_main.cpp +++ b/TrainingModpackOverlay/source/gui_main.cpp @@ -19,7 +19,7 @@ static struct TrainingModpackMenu DefensiveFlags DEFENSIVE_STATE = DefensiveFlags::All; DelayFlags OOS_OFFSET = DelayFlags::None; DelayFlags REACTION_TIME = DelayFlags::None; - OnOffFlags MASH_IN_NEUTRAL = OnOffFlag::Off; + OnOffFlags MASH_IN_NEUTRAL = OnOffFlags::None; BoolFlags FAST_FALL = BoolFlags::None; DelayFlags FAST_FALL_DELAY = DelayFlags::None; BoolFlags FALLING_AERIALS = BoolFlags::None; @@ -470,7 +470,18 @@ tsl::elm::Element* GuiMain::createUI() std::string extdata, int index, std::string title, - std::string help) { menu = defaultMenu; }); + std::string help) { + menu = defaultMenu; + + /* Open Sd card filesystem. */ + FsFileSystem fsSdmc; + if(R_FAILED(fsOpenSdCardFileSystem(&fsSdmc))) return; + tsl::hlp::ScopeGuard fsGuard([&] { fsFsClose(&fsSdmc); }); + + fsFsDeleteFile(&fsSdmc, TRAINING_MOD_CONF); + + tsl::goBack(); + }); resetMenuItem->setHelpListener( [](std::string title, std::string help) { tsl::changeTo(title, help); }); list->addItem(resetMenuItem);