Core: Config values can now be hexadecimal

This commit is contained in:
Vicki Pfau 2017-06-13 22:05:54 -07:00
parent caa1d45793
commit 0cc49ac4fb
2 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,7 @@ Misc:
- Debugger: Add mDebuggerRunFrame convenience function
- GBA Memory: Remove unused prefetch cruft
- GB: Trust ROM header for number of SRAM banks (fixes mgba.io/i/726)
- Core: Config values can now be hexadecimal
0.5.2: (2016-12-31)
Bugfixes:

View File

@ -86,6 +86,9 @@ static bool _lookupIntValue(const struct mCoreConfig* config, const char* key, i
}
char* end;
long value = strtol(charValue, &end, 10);
if (end == &charValue[1] && *end == 'x') {
value = strtol(charValue, &end, 16);
}
if (*end) {
return false;
}