Test: Fix crash when loading invalid file

This commit is contained in:
Vicki Pfau 2017-04-18 03:36:48 -07:00
parent 6fb7c0780a
commit 93122df1f4
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,7 @@ Bugfixes:
- GBA Video: Don't update background scanline params in mode 0 (fixes mgba.io/i/377)
- Qt: Ensure CLI backend is attached when submitting commands (fixes mgba.io/i/662)
- Core: Fix crash with rewind if savestates shrink
- Test: Fix crash when loading invalid file
Misc:
- SDL: Remove scancode key input
- GBA Video: Clean up unused timers

View File

@ -68,6 +68,9 @@ int main(int argc, char** argv) {
return 0;
}
struct mCore* core = mCoreFind(args.fname);
if (!core) {
return 1;
}
core->init(core);
mCoreInitConfig(core, "fuzz");
applyArguments(&args, NULL, &core->config);