all repos — mgba @ f90ac6e9a9195765d373ad8d918cf0150f52e8bd

mGBA Game Boy Advance Emulator

Libretro: Do game unload cleanup
Jeffrey Pfau jeffrey@endrift.com
Sun, 08 Mar 2015 22:49:53 -0700
commit

f90ac6e9a9195765d373ad8d918cf0150f52e8bd

parent

6c5a1315ea314587e3387538ccbe2eb42157fb70

1 files changed, 6 insertions(+), 1 deletions(-)

jump to
M src/platform/libretro/libretro.csrc/platform/libretro/libretro.c

@@ -182,7 +182,12 @@ return true;

} void retro_unload_game(void) { - // TODO + rom->close(rom); + rom = 0; + save->close(save); + save = 0; + free(savedata); + savedata = 0; } size_t retro_serialize_size(void) {