66 return m_options.size();
117 bool numeric =
false;
118 bool boolean =
false;
122 const GameConfig &ConfigFor(
const Option &option)
const;
123 GameConfig &m_config;
124 GameConfig m_overrides;
127 bool m_presetRestart =
true;
The settings of BossRally.ini.
Definition config.h:18
void SetOverrides(GameConfig overrides)
Replace temporary values supplied by command-line arguments without saving them.
GameSettings(GameConfig &config, std::span< const std::filesystem::path > dataRoots={}, std::span< const std::array< int, 2 > > displayResolutions={})
Build available options from the configuration, installed packs, and display modes.
bool IsEnabled(std::size_t index) const
std::string Label(std::size_t index) const
bool RequiresRestart(std::size_t index) const
bool Step(std::size_t index, int direction)
Cycle a setting in either direction.
void FinishPresetSelection()
End preset browsing; the next preset adjustment captures a new baseline.
std::size_t Count() const
Definition gamesettings.h:65
Definition assetimport.h:11
bool SpeedInMph(const GameConfig &config, std::string_view region, std::string_view country)
Resolve speed units without recording an automatic choice as a user preference.
bool ApplyGraphicsPreset(GameConfig &config, std::string_view preset)
Apply a graphics preset without changing language or region.
int SoundEffectsVolume(const GameConfig &config, bool n64)
Resolve SFX volume from a manual preference or the selected sample source.