all repos — mgba @ afbd795c60dd853a66befa4c5fa6163847104775

mGBA Game Boy Advance Emulator

GBA Context: Save config when closing down a GUI context
Jeffrey Pfau jeffrey@endrift.com
Mon, 07 Sep 2015 21:47:18 -0700
commit

afbd795c60dd853a66befa4c5fa6163847104775

parent

8452e880c2d976b4054ce0e2cb5df0a2c230ee15

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/gba/gui/gui-runner.csrc/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); }