aboutsummaryrefslogtreecommitdiff
path: root/plat_sdl.c
diff options
context:
space:
mode:
authorneonloop2021-09-07 15:31:11 +0000
committerneonloop2021-09-07 15:31:11 +0000
commitd1bf155304d5643218cf70e58d8fb5191536fb9e (patch)
tree391dfb369fd43e97816cabc4e51a4118de3154df /plat_sdl.c
parent5d178649a6af2963e86e67613470fc31d64e5454 (diff)
downloadpicoarch-d1bf155304d5643218cf70e58d8fb5191536fb9e.tar.gz
picoarch-d1bf155304d5643218cf70e58d8fb5191536fb9e.tar.bz2
picoarch-d1bf155304d5643218cf70e58d8fb5191536fb9e.zip
Enables softpatching for cores loading content from disk
If a core sets need_fullpath, content is patched and written to a file in /tmp. This allows patching content for gpsp and probably others.
Diffstat (limited to 'plat_sdl.c')
-rw-r--r--plat_sdl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plat_sdl.c b/plat_sdl.c
index d04c8c2..76be077 100644
--- a/plat_sdl.c
+++ b/plat_sdl.c
@@ -424,5 +424,7 @@ int plat_reinit(void)
void plat_finish(void)
{
plat_sound_finish();
+ SDL_FreeSurface(screen);
+ screen = NULL;
SDL_Quit();
}