mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Config/Section: support u16 values
This commit is contained in:
@ -35,6 +35,7 @@ public:
|
||||
// Setters
|
||||
virtual void Set(const std::string& key, const std::string& value);
|
||||
|
||||
void Set(const std::string& key, u16 newValue);
|
||||
void Set(const std::string& key, u32 newValue);
|
||||
void Set(const std::string& key, float newValue);
|
||||
void Set(const std::string& key, double newValue);
|
||||
@ -57,6 +58,7 @@ public:
|
||||
const std::string& default_value = NULL_STRING) const;
|
||||
|
||||
bool Get(const std::string& key, int* value, int defaultValue = 0) const;
|
||||
bool Get(const std::string& key, u16* value, u16 defaultValue = 0) const;
|
||||
bool Get(const std::string& key, u32* value, u32 defaultValue = 0) const;
|
||||
bool Get(const std::string& key, bool* value, bool defaultValue = false) const;
|
||||
bool Get(const std::string& key, float* value, float defaultValue = 0.0f) const;
|
||||
|
Reference in New Issue
Block a user