diff --git a/src/gba/gui/gui-runner.c b/src/gba/gui/gui-runner.c index 37fdf62a3..3de451857 100644 --- a/src/gba/gui/gui-runner.c +++ b/src/gba/gui/gui-runner.c @@ -109,6 +109,9 @@ void GBAGUIDeinit(struct GBAGUIRunner* runner) { if (runner->teardown) { runner->teardown(runner); } + if (runner->context.config.port) { + GBAConfigSave(&runner->context.config); + } GBAContextDeinit(&runner->context); }