GBA Context: Save config when closing down a GUI context

This commit is contained in:
Jeffrey Pfau 2015-09-07 21:47:18 -07:00
parent 8452e880c2
commit afbd795c60
1 changed files with 3 additions and 0 deletions

View File

@ -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);
} }