4#include "Etterna/Models/Misc/GameConstantsAndTypes.h"
5#include "Etterna/Models/Misc/Preference.h"
10ValidateDisplayAspectRatio(
float& val);
12enum MusicWheelUsesSections
14 MusicWheelUsesSections_NEVER,
15 MusicWheelUsesSections_ALWAYS,
16 MusicWheelUsesSections_ABC_ONLY,
17 NUM_MusicWheelUsesSections,
18 MusicWheelUsesSections_Invalid
34 GetRankingName_Invalid
36enum RandomBackgroundMode
40 NUM_RandomBackgroundMode,
41 RandomBackgroundMode_Invalid
46 IMGCACHE_LOW_RES_PRELOAD,
47 IMGCACHE_LOW_RES_LOAD_ON_DEMAND,
50 ImageCacheMode_Invalid
52enum HighResolutionTextures
54 HighResolutionTextures_Auto,
55 HighResolutionTextures_ForceOff,
56 HighResolutionTextures_ForceOn,
57 NUM_HighResolutionTextures,
58 HighResolutionTextures_Invalid,
60enum AttractSoundFrequency
68 NUM_AttractSoundFrequency,
69 AttractSoundFrequency_Invalid
76 BFM_FitInsideAvoidLetter,
77 BFM_FitInsideAvoidPillar,
78 NUM_BackgroundFitMode,
79 BackgroundFitMode_Invalid
91 void SetCurrentGame(
const std::string& sGame);
92 auto GetCurrentGame() -> std::string {
return m_sCurrentGame; }
104 void StoreGamePrefs();
105 void RestoreGamePrefs();
112 std::string m_sAnnouncer;
113 std::string m_sDefaultModifiers;
115 std::map<std::string, GamePrefs> m_mapGameNameToGamePrefs;
248 void ReadPrefsFromIni(
const IniFile& ini,
249 const std::string& sSection,
251 void ReadGamePrefsFromIni(
const std::string& sIni);
252 void ReadDefaultsFromIni(
const IniFile& ini,
const std::string& sSection);
253 void SavePrefsToIni(
IniFile& ini);
255 void ReadPrefsFromDisk();
256 void SavePrefsToDisk();
258 void ResetToFactoryDefaults();
260 [[nodiscard]]
auto GetPreferencesSection() const -> std::
string;
263 void PushSelf(lua_State* L);
266 void ReadPrefsFromFile(const std::
string& sIni,
267 const std::
string& sSection,
269 void ReadDefaultsFromFile(const std::
string& sIni,
270 const std::
string& sSection);
The functions to read and write .INI files.
Definition IniFile.h:11
Definition Preference.h:53
Holds user-chosen preferences that are saved between sessions.
Definition PrefsManager.h:84
Definition PrefsManager.h:107