diff options
author | aliaspider | 2015-11-01 23:32:10 +0100 |
---|---|---|
committer | aliaspider | 2015-11-01 23:32:10 +0100 |
commit | ab91b8e2097e84dc215c192584eddbfecac1a1f8 (patch) | |
tree | 52d3f6953c6b052d2576baf2a9127c5c381b9123 | |
parent | de41bfac45d2e4be7cba8942c408571d2ecbc0d1 (diff) | |
download | snesemu-ab91b8e2097e84dc215c192584eddbfecac1a1f8.tar.gz snesemu-ab91b8e2097e84dc215c192584eddbfecac1a1f8.tar.bz2 snesemu-ab91b8e2097e84dc215c192584eddbfecac1a1f8.zip |
add "Video Mode" core option.
-rw-r--r-- | libretro.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -336,7 +336,8 @@ void retro_init(void) struct retro_log_callback log; enum retro_pixel_format rgb565; static const struct retro_variable vars[] = { - { "SwapJoypads", "Swap Joypads; disabled|enabled" }, + { "catsfc_SwapJoypads", "Swap Joypads; disabled|enabled" }, + { "catsfc_VideoMode", "Video Mode; auto|NTSC|PAL" }, { NULL, NULL }, }; @@ -421,11 +422,18 @@ static void check_variables(void) { struct retro_variable var; - var.key = "SwapJoypads"; + var.key = "catsfc_SwapJoypads"; var.value = NULL; if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) Settings.SwapJoypads = strcmp(var.value, "disabled"); + var.key = "catsfc_VideoMode"; + var.value = NULL; + if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value) + { + Settings.ForceNTSC = !strcmp(var.value, "NTSC"); + Settings.ForcePAL = !strcmp(var.value, "PAL"); + } } |