mirror of https://github.com/mgba-emu/mgba.git
Core: Config values can now be hexadecimal
This commit is contained in:
parent
caa1d45793
commit
0cc49ac4fb
1
CHANGES
1
CHANGES
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue