mirror of https://github.com/mgba-emu/mgba.git
GUI: Fix crashing when attempting to read config (fixes #505)
This commit is contained in:
parent
91fd2c6b47
commit
12a5b6c0bd
|
@ -283,6 +283,7 @@ void mGUIRun(struct mGUIRunner* runner, const char* path) {
|
|||
if (runner->core) {
|
||||
mLOG(GUI_RUNNER, INFO, "Found core");
|
||||
runner->core->init(runner->core);
|
||||
mCoreConfigInit(&runner->core->config, runner->port);
|
||||
mInputMapInit(&runner->core->inputMap, &GBAInputInfo);
|
||||
found = mCoreLoadFile(runner->core, path);
|
||||
if (!found) {
|
||||
|
|
Loading…
Reference in New Issue