summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@googlemail.com>2011-02-13 22:36:12 +0000
committerNeoBrainX <NeoBrainX@googlemail.com>2011-02-13 22:36:12 +0000
commitb776ac3d6fab0f6beb9aceef15b8af9bb984ba4b (patch)
tree485eb45e4ec825f9ccad2739742222116f4f2c39 /Source/Core/Common
parent7a7a71d3fa09faaab16d975a4ac8b61744e76e24 (diff)
Add per-game "configuration profiles" for video backend configuration:
This allows ALL settings in the gfx configuration dialog to be adjusted _per game_ in a more user-friendly way than before. Obsoletes the gfx related options in the ISO properties, but I kept those since the configuration profiles use different ini file keys (i.e. convert the game inis to the new naming, please!). git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7167 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/IniFile.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/IniFile.h b/Source/Core/Common/Src/IniFile.h
index 3c4959f04b..31d410e44c 100644
--- a/Source/Core/Common/Src/IniFile.h
+++ b/Source/Core/Common/Src/IniFile.h
@@ -120,6 +120,13 @@ public:
bool Get(const char* sectionName, const char* key, bool* value, bool defaultValue = false);
bool Get(const char* sectionName, const char* key, std::vector<std::string>& values);
+ template<typename T> bool GetIfExists(const char* sectionName, const char* key, T value)
+ {
+ if (Exists(sectionName, key))
+ return Get(sectionName, key, value);
+ return false;
+ }
+
bool GetKeys(const char* sectionName, std::vector<std::string>& keys) const;
void SetLines(const char* sectionName, const std::vector<std::string> &lines);