mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
COMMON: Fix ConfMan.getBool() to correctly process missing values
This commit is contained in:
parent
63a48de8d3
commit
0cb63ae556
@ -92,7 +92,8 @@ bool parseBool(const String &val, bool &valAsBool) {
|
||||
}
|
||||
if (val.equalsIgnoreCase("false") ||
|
||||
val.equalsIgnoreCase("no") ||
|
||||
val.equals("0")) {
|
||||
val.equals("0") ||
|
||||
val.empty()) {
|
||||
valAsBool = false;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user