GUI: Fix crashing when attempting to read config (fixes #505)

This commit is contained in:
Vicki Pfau 2017-01-26 21:15:55 -08:00
parent 91fd2c6b47
commit 12a5b6c0bd
1 changed files with 1 additions and 0 deletions

View File

@ -283,6 +283,7 @@ void mGUIRun(struct mGUIRunner* runner, const char* path) {
if (runner->core) { if (runner->core) {
mLOG(GUI_RUNNER, INFO, "Found core"); mLOG(GUI_RUNNER, INFO, "Found core");
runner->core->init(runner->core); runner->core->init(runner->core);
mCoreConfigInit(&runner->core->config, runner->port);
mInputMapInit(&runner->core->inputMap, &GBAInputInfo); mInputMapInit(&runner->core->inputMap, &GBAInputInfo);
found = mCoreLoadFile(runner->core, path); found = mCoreLoadFile(runner->core, path);
if (!found) { if (!found) {