diff options
author | neonloop | 2021-08-10 21:50:17 +0000 |
---|---|---|
committer | neonloop | 2021-08-10 21:50:17 +0000 |
commit | c17d20ab28e0ac7dd527ff840559d96e98931a80 (patch) | |
tree | 3a4e5f618028cabccec28e0f5b6f58418eae98b1 /main.c | |
parent | 5d165e6ef6b5cd79c1b8b20fbdf716d73fbebd1b (diff) | |
download | picoarch-c17d20ab28e0ac7dd527ff840559d96e98931a80.tar.gz picoarch-c17d20ab28e0ac7dd527ff840559d96e98931a80.tar.bz2 picoarch-c17d20ab28e0ac7dd527ff840559d96e98931a80.zip |
Fixes core options deallocated by core
Some cores free core options after notifying libretro, picoarch cannot
rely on them staying around.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |