From e5954a7e3abf8eacded2c5f8fd06a6306630f3b0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 2 Aug 2019 08:29:11 +0200 Subject: Add new core options --- libretro.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'libretro.c') diff --git a/libretro.c b/libretro.c index a3d2beb..68d927a 100644 --- a/libretro.c +++ b/libretro.c @@ -22,6 +22,8 @@ #include #include +#include "libretro_core_options.h" + #ifdef _3DS void* linearMemAlign(size_t size, size_t alignment); void linearFree(void* mem); @@ -80,6 +82,7 @@ void retro_set_environment(retro_environment_t cb) else log_cb = NULL; + libretro_set_core_options(environ_cb); environ_cb(RETRO_ENVIRONMENT_GET_PERF_INTERFACE, &perf_cb); } @@ -295,14 +298,6 @@ void retro_init(void) enum retro_pixel_format rgb565; bool achievements = true; - static const struct retro_variable vars[] = - { - { "catsfc_VideoMode", "Video Mode; auto|NTSC|PAL" }, - { "catsfc_overclock_cycles", "Reduce Slowdown (Hack, Unsafe, Restart); disabled|compatible|max" }, - { "catsfc_reduce_sprite_flicker", "Reduce Flickering (Hack, Unsafe); disabled|enabled" }, - { NULL, NULL }, - }; - if (environ_cb(RETRO_ENVIRONMENT_GET_LOG_INTERFACE, &log)) log_cb = log.log; else @@ -326,7 +321,6 @@ void retro_init(void) #else S9xInitSound(); #endif - environ_cb(RETRO_ENVIRONMENT_SET_VARIABLES, (void*)vars); CPU.SaveStateVersion = 0; } -- cgit v1.2.3