aboutsummaryrefslogtreecommitdiff
path: root/plat_sdl.c
diff options
context:
space:
mode:
authorneonloop2021-08-27 00:30:47 +0000
committerneonloop2021-08-27 00:30:47 +0000
commit3f527c7426cbbdbd04962545b801c944434a0377 (patch)
treef9ba8499e54dcafb2fea259522fd4ff1b9f66f2b /plat_sdl.c
parent0060a16ad707c1d6f2013947821ff55e377ceb92 (diff)
downloadpicoarch-3f527c7426cbbdbd04962545b801c944434a0377.tar.gz
picoarch-3f527c7426cbbdbd04962545b801c944434a0377.tar.bz2
picoarch-3f527c7426cbbdbd04962545b801c944434a0377.zip
Adds a standalone multi-emulator mode
When starting without arguments, can select a core in the current directory and some content (a game). Allows loading a different game from the in-game menu.
Diffstat (limited to 'plat_sdl.c')
-rw-r--r--plat_sdl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/plat_sdl.c b/plat_sdl.c
index 010d1b6..d04c8c2 100644
--- a/plat_sdl.c
+++ b/plat_sdl.c
@@ -413,6 +413,14 @@ int plat_init(void)
return 0;
}
+int plat_reinit(void)
+{
+ audio.in_sample_rate = sample_rate;
+ plat_sound_resize_buffer();
+ scale_update_scaler();
+ return 0;
+}
+
void plat_finish(void)
{
plat_sound_finish();