aboutsummaryrefslogtreecommitdiff
path: root/libretro.c
diff options
context:
space:
mode:
authortwinaphex2019-08-02 08:29:11 +0200
committertwinaphex2019-08-02 08:29:11 +0200
commite5954a7e3abf8eacded2c5f8fd06a6306630f3b0 (patch)
tree4c32262e36358b1aa4aeb99572ab5d066096764e /libretro.c
parentc9b3980caaf1ab3a20c5e002e48c365347f522db (diff)
downloadsnes9x2005-e5954a7e3abf8eacded2c5f8fd06a6306630f3b0.tar.gz
snes9x2005-e5954a7e3abf8eacded2c5f8fd06a6306630f3b0.tar.bz2
snes9x2005-e5954a7e3abf8eacded2c5f8fd06a6306630f3b0.zip
Add new core options
Diffstat (limited to 'libretro.c')
-rw-r--r--libretro.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/libretro.c b/libretro.c
index a3d2beb..68d927a 100644
--- a/libretro.c
+++ b/libretro.c
@@ -22,6 +22,8 @@
#include <libretro.h>
#include <retro_miscellaneous.h>
+#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;
}