mirror of https://github.com/mgba-emu/mgba.git
Test: Fix crash when loading invalid file
This commit is contained in:
parent
de76a076e8
commit
fbb8b2431b
1
CHANGES
1
CHANGES
|
@ -23,6 +23,7 @@ Bugfixes:
|
||||||
- GBA BIOS: Fix ArcTan2 sign in HLE BIOS (fixes mgba.io/i/689)
|
- GBA BIOS: Fix ArcTan2 sign in HLE BIOS (fixes mgba.io/i/689)
|
||||||
- GBA Video: Don't update background scanline params in mode 0 (fixes mgba.io/i/377)
|
- GBA Video: Don't update background scanline params in mode 0 (fixes mgba.io/i/377)
|
||||||
- Core: Fix crash with rewind if savestates shrink
|
- Core: Fix crash with rewind if savestates shrink
|
||||||
|
- Test: Fix crash when loading invalid file
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Improved HiDPI support
|
- Qt: Improved HiDPI support
|
||||||
- Feature: Support ImageMagick 7
|
- Feature: Support ImageMagick 7
|
||||||
|
|
|
@ -66,6 +66,9 @@ int main(int argc, char** argv) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
struct mCore* core = mCoreFind(args.fname);
|
struct mCore* core = mCoreFind(args.fname);
|
||||||
|
if (!core) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
core->init(core);
|
core->init(core);
|
||||||
mCoreInitConfig(core, "fuzz");
|
mCoreInitConfig(core, "fuzz");
|
||||||
applyArguments(&args, NULL, &core->config);
|
applyArguments(&args, NULL, &core->config);
|
||||||
|
|
Loading…
Reference in New Issue