From c17d20ab28e0ac7dd527ff840559d96e98931a80 Mon Sep 17 00:00:00 2001 From: neonloop Date: Tue, 10 Aug 2021 21:50:17 +0000 Subject: Fixes core options deallocated by core Some cores free core options after notifying libretro, picoarch cannot rely on them staying around. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index d399f7a..9cd0696 100644 --- a/main.c +++ b/main.c @@ -104,7 +104,7 @@ void set_defaults(void) for (size_t i = 0; i < core_options.len; i++) { const char *key = options_get_key(i); if (key) - core_options.entries[i].value = options_default_index(key); + core_options.entries[i].value = core_options.entries[i].default_value; } options_update_changed(); -- cgit v1.2.3