mirror of https://github.com/mgba-emu/mgba.git
Core: An empty config string is a null config value
This commit is contained in:
parent
ea3e6d6b54
commit
cd0b5193cb
|
@ -79,7 +79,7 @@ static const char* _lookupValue(const struct mCoreConfig* config, const char* ke
|
|||
|
||||
static bool _lookupCharValue(const struct mCoreConfig* config, const char* key, char** out) {
|
||||
const char* value = _lookupValue(config, key);
|
||||
if (!value) {
|
||||
if (!value || !value[0]) {
|
||||
return false;
|
||||
}
|
||||
if (*out) {
|
||||
|
|
Loading…
Reference in New Issue