[idd] driver: add/expose CSettings read string/bool methods

This commit is contained in:
Geoffrey McRae
2026-06-03 07:07:17 +10:00
committed by Geoffrey McRae
parent 929428c273
commit a59040f0be
2 changed files with 48 additions and 1 deletions

View File

@@ -43,9 +43,11 @@ class CSettings
bool GetExtraMode(DisplayMode & mode);
unsigned GetDefaultRefresh() const;
std::wstring ReadStringValue(const wchar_t* name, const wchar_t* defaultValue);
bool ReadBoolValue(const wchar_t* name, bool defaultValue);
private:
DisplayModes m_displayModes;
std::wstring ReadStringValue(const wchar_t* name, const wchar_t* default);
bool ReadModesValue(std::vector<std::wstring> &out) const;
bool ParseModeString(const std::wstring& in, DisplayMode& out);