File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ namespace horrible {
2828 bool online; // If the option requires an active internet connection to work properly
2929 bool restart; // If the option requires a game restart to take effect
3030 std::vector<Platform> platforms; // Platforms that the option supports
31+ bool cheating; // If the option counts as cheating and will trigger dynamic safe mode
3132
3233 OptionV2 () = default ; // Default constructor
3334
@@ -41,7 +42,8 @@ namespace horrible {
4142 bool state = false ,
4243 bool online = false ,
4344 bool restart = false ,
44- std::vector<Platform> platforms = {Platform::All}) :
45+ std::vector<Platform> platforms = {Platform::All},
46+ bool cheating = false ) :
4547 id(std::move(id)),
4648 name(std::move(name)),
4749 description(std::move(description)),
@@ -51,6 +53,7 @@ namespace horrible {
5153 online(online),
5254 restart(restart),
5355 platforms(std::move(platforms)),
56+ cheating(cheating),
5457 integration(geode::Mod::get()) {};
5558
5659 inline const geode::Mod* getIntegration () const noexcept {
Original file line number Diff line number Diff line change @@ -342,7 +342,8 @@ void OptionManagerV2::registerOption(OptionV2 const& option) {
342342 ->setDefaultToggleState (option.state )
343343 ->setOnline (option.online )
344344 ->setRequiresRestart (option.restart )
345- ->setSupportedPlatforms (option.platforms );
345+ ->setSupportedPlatforms (option.platforms )
346+ ->setCheating (option.cheating );
346347
347348 om->registerOption (opt);
348349 (void )OptionEvent (opt->getID ()).send (om->getOption (opt->getID ()));
You can’t perform that action at this time.
0 commit comments