VideoConfig: Don't give warnings for per-game stereoscopy parameters.

This commit is contained in:
Jules Blok
2015-12-24 15:48:02 +01:00
parent 7fcb5a803b
commit 1e111421e9
2 changed files with 14 additions and 9 deletions

View File

@ -111,7 +111,7 @@ public:
// Returns true if key exists in section
bool Exists(const std::string& sectionName, const std::string& key) const;
template<typename T> bool GetIfExists(const std::string& sectionName, const std::string& key, T value)
template<typename T> bool GetIfExists(const std::string& sectionName, const std::string& key, T* value)
{
if (Exists(sectionName, key))
return GetOrCreateSection(sectionName)->Get(key, value);
@ -119,6 +119,14 @@ public:
return false;
}
template<typename T> bool GetIfExists(const std::string& sectionName, const std::string& key, T* value, T defaultValue)
{
if (Exists(sectionName, key))
return GetOrCreateSection(sectionName)->Get(key, value, defaultValue);
return false;
}
bool GetKeys(const std::string& sectionName, std::vector<std::string>* keys) const;
void SetLines(const std::string& sectionName, const std::vector<std::string>& lines);