mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-09 07:19:34 -06:00
StringUtil fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6370 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -154,9 +154,9 @@ bool TryParse(const std::string &str, u32 *const output)
|
|||||||
|
|
||||||
bool TryParse(const std::string &str, bool *const output)
|
bool TryParse(const std::string &str, bool *const output)
|
||||||
{
|
{
|
||||||
if ('1' == str[0] || !strcasecmp("true", str.c_str()))
|
if ("1" == str || !strcasecmp("true", str.c_str()))
|
||||||
*output = true;
|
*output = true;
|
||||||
else if ('0' == str[0] || !strcasecmp("false", str.c_str()))
|
else if ("0" == str || !strcasecmp("false", str.c_str()))
|
||||||
*output = false;
|
*output = false;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user