summaryrefslogtreecommitdiff
path: root/libretro
diff options
context:
space:
mode:
authorTatsuya792018-02-13 00:55:05 +0100
committerTatsuya792018-02-13 00:55:05 +0100
commite09b3a980d58c06032c6ab65eeb7a04408dd1ad6 (patch)
tree993403f7c20a5f3a957c25e6bfe5b9db06ccc066 /libretro
parent69290442540fffe9e5a80a75fb83ded5171dbbd0 (diff)
downloadsnes9x2002-e09b3a980d58c06032c6ab65eeb7a04408dd1ad6.tar.gz
snes9x2002-e09b3a980d58c06032c6ab65eeb7a04408dd1ad6.tar.bz2
snes9x2002-e09b3a980d58c06032c6ab65eeb7a04408dd1ad6.zip
Make 2 cycles oc profiles.
Diffstat (limited to 'libretro')
-rw-r--r--libretro/libretro.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/libretro/libretro.c b/libretro/libretro.c
index bbb7b92..6609973 100644
--- a/libretro/libretro.c
+++ b/libretro/libretro.c
@@ -92,6 +92,7 @@ static uint32 joys[5];
bool8 ROMAPUEnabled = 0;
char currentWorkingDir[MAX_PATH+1] = {0};
bool overclock_cycles = false;
+int one_c, slow_one_c, two_c;
memstream_t *s_stream;
@@ -354,7 +355,7 @@ void retro_init (void)
{
static const struct retro_variable vars[] =
{
- { "snes9x2002_overclock_cycles", "Reduce Slowdown (Hack, Unsafe, Restart); disabled|enabled" },
+ { "snes9x2002_overclock_cycles", "Reduce Slowdown (Hack, Unsafe, Restart); disabled|compatible|max" },
{ NULL, NULL },
};
@@ -431,8 +432,20 @@ static void check_variables(void)
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
- if (strcmp(var.value, "enabled") == 0)
- overclock_cycles = true;
+ if (strcmp(var.value, "compatible") == 0)
+ {
+ overclock_cycles = true;
+ one_c = 4;
+ slow_one_c = 5;
+ two_c = 6;
+ }
+ else if (strcmp(var.value, "max") == 0)
+ {
+ overclock_cycles = true;
+ one_c = 3;
+ slow_one_c = 3;
+ two_c = 3;
+ }
else
overclock_cycles = false;
}