mirror of https://github.com/PCSX2/pcsx2.git
Fixes to Arch WX length_error (#3625)
This commit is contained in:
parent
3324043d21
commit
dc5bfbb470
|
@ -170,7 +170,12 @@ void IniLoader::Entry(const wxString &var, uint &value, const uint defvalue)
|
||||||
void IniLoader::Entry(const wxString &var, bool &value, const bool defvalue)
|
void IniLoader::Entry(const wxString &var, bool &value, const bool defvalue)
|
||||||
{
|
{
|
||||||
// TODO : Stricter value checking on enabled/disabled?
|
// TODO : Stricter value checking on enabled/disabled?
|
||||||
wxString dest(defvalue ? L"enabled" : L"disabled");
|
wxString dest;
|
||||||
|
if(defvalue)
|
||||||
|
dest = wxString("enabled");
|
||||||
|
else
|
||||||
|
dest = wxString("disabled");
|
||||||
|
|
||||||
if (m_Config)
|
if (m_Config)
|
||||||
m_Config->Read(var, &dest, dest);
|
m_Config->Read(var, &dest, dest);
|
||||||
value = (dest == L"enabled") || (dest == L"1");
|
value = (dest == L"enabled") || (dest == L"1");
|
||||||
|
|
Loading…
Reference in New Issue