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
|
- Debugger: Add mDebuggerRunFrame convenience function
|
||||||
- GBA Memory: Remove unused prefetch cruft
|
- GBA Memory: Remove unused prefetch cruft
|
||||||
- GB: Trust ROM header for number of SRAM banks (fixes mgba.io/i/726)
|
- 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)
|
0.5.2: (2016-12-31)
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
|
@ -86,6 +86,9 @@ static bool _lookupIntValue(const struct mCoreConfig* config, const char* key, i
|
||||||
}
|
}
|
||||||
char* end;
|
char* end;
|
||||||
long value = strtol(charValue, &end, 10);
|
long value = strtol(charValue, &end, 10);
|
||||||
|
if (end == &charValue[1] && *end == 'x') {
|
||||||
|
value = strtol(charValue, &end, 16);
|
||||||
|
}
|
||||||
if (*end) {
|
if (*end) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue