mirror of https://github.com/mgba-emu/mgba.git
GBA Context: Save config when closing down a GUI context
This commit is contained in:
parent
8452e880c2
commit
afbd795c60
|
@ -109,6 +109,9 @@ void GBAGUIDeinit(struct GBAGUIRunner* runner) {
|
||||||
if (runner->teardown) {
|
if (runner->teardown) {
|
||||||
runner->teardown(runner);
|
runner->teardown(runner);
|
||||||
}
|
}
|
||||||
|
if (runner->context.config.port) {
|
||||||
|
GBAConfigSave(&runner->context.config);
|
||||||
|
}
|
||||||
GBAContextDeinit(&runner->context);
|
GBAContextDeinit(&runner->context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue