22 #ifndef STARK_SERVICES_SETTINGS_H 23 #define STARK_SERVICES_SETTINGS_H 25 #include "common/config-manager.h" 26 #include "common/language.h" 27 #include "common/ustr.h" 29 #include "engines/stark/gfx/bitmap.h" 30 #include "engines/stark/services/services.h" 47 enum BoolSettingIndex {
56 enum IntSettingIndex {
76 bool getBoolSetting(BoolSettingIndex index) {
return ConfMan.getBool(_boolKey[index]); }
77 int getIntSetting(IntSettingIndex index) {
return ConfMan.getInt(_intKey[index]); }
81 ConfMan.setBool(_boolKey[index], !getBoolSetting(index));
85 void setIntSetting(IntSettingIndex index,
int value);
92 ConfMan.setBool(
"xoBfOsterceS",
true);
93 ConfMan.flushToDisk();
100 bool isAssetsModEnabled()
const;
111 bool shouldPreMultiplyReplacementPNGs()
const;
114 Gfx::Bitmap::SamplingFilter getImageSamplingFilter()
const;
117 Common::CodePage getTextCodePage()
const;
120 bool isFontAntialiasingEnabled()
const;
129 bool shouldIgnoreFontSettings()
const;
142 const char *_boolKey[6];
143 const char *_intKey[4];
148 #endif // STARK_SERVICES_SETTINGS_H void enableBookOfSecrets()
Definition: settings.h:91
Definition: advancedDetector.h:163
bool hasLowResFMV()
Definition: settings.h:88
bool isDemo() const
Definition: settings.h:71
void flipSetting(BoolSettingIndex index)
Definition: settings.h:80
bool hasBookOfSecrets()
Definition: settings.h:97
bool getBoolSetting(BoolSettingIndex index)
Definition: settings.h:76
Definition: settings.h:45
Language
Definition: language.h:45