mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Change how defaults work in the inifile reader (more flexible this way)
This commit is contained in:
1 parent
c98b7591d3
commit
14ddad5ce3
14 files changed
+269
-184
No files matched your search
@@ -170,11 +170,11 @@ void Compatibility::CheckVRSettings(IniFile &iniFile, const std::string &gameID)
|
||||
|
||||
void Compatibility::CheckSetting(IniFile &iniFile, const std::string &gameID, const char *option, bool *flag) {
|
||||
if (ignored_.find(option) == ignored_.end()) {
|
||||
iniFile.Get(option, gameID.c_str(), flag, *flag);
|
||||
iniFile.Get(option, gameID.c_str(), flag);
|
||||
|
||||
// Shortcut for debugging, sometimes useful to globally enable compat flags.
|
||||
bool all = false;
|
||||
iniFile.Get(option, "ALL", &all, false);
|
||||
iniFile.Get(option, "ALL", &all);
|
||||
if (all) {
|
||||
*flag |= all;
|
||||
if (!activeList_.empty()) {
|
||||
@@ -187,14 +187,14 @@ void Compatibility::CheckSetting(IniFile &iniFile, const std::string &gameID, co
|
||||
|
||||
void Compatibility::CheckSetting(IniFile &iniFile, const std::string &gameID, const char *option, float *flag) {
|
||||
std::string value;
|
||||
if (iniFile.Get(option, gameID.c_str(), &value, "0")) {
|
||||
if (iniFile.Get(option, gameID.c_str(), &value)) {
|
||||
*flag = stof(value);
|
||||
}
|
||||
}
|
||||
|
||||
void Compatibility::CheckSetting(IniFile &iniFile, const std::string &gameID, const char *option, int *flag) {
|
||||
std::string value;
|
||||
if (iniFile.Get(option, gameID.c_str(), &value, "0")) {
|
||||
if (iniFile.Get(option, gameID.c_str(), &value)) {
|
||||
*flag = stof(value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user