diff options
author | João Silva | 2017-01-15 01:08:40 +0000 |
---|---|---|
committer | João Silva | 2017-01-15 01:08:40 +0000 |
commit | bc7474392a91fa9838e6ecb5b16ccebdd97ab9ec (patch) | |
tree | 3447568188fd4e707386acb3a2034958f9ba1fed /libretro.c | |
parent | a06ce12a2acdc993742df298f6d40811da70a432 (diff) | |
download | snes9x2005-bc7474392a91fa9838e6ecb5b16ccebdd97ab9ec.tar.gz snes9x2005-bc7474392a91fa9838e6ecb5b16ccebdd97ab9ec.tar.bz2 snes9x2005-bc7474392a91fa9838e6ecb5b16ccebdd97ab9ec.zip |
Fixed input for games like SMAS and removed joypad swapping option.
Diffstat (limited to 'libretro.c')
-rw-r--r-- | libretro.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -195,7 +195,10 @@ void _makepath(char* path, const char* drive, const char* dir, } else *path = 0; - strcat(path, fname); + + if (fname) + strcat(path, fname); + if (ext && *ext) { strcat(path, "."); @@ -322,7 +325,6 @@ void retro_init(void) struct retro_log_callback log; enum retro_pixel_format rgb565; static const struct retro_variable vars[] = { - { "catsfc_SwapJoypads", "Swap Joypads; disabled|enabled" }, { "catsfc_VideoMode", "Video Mode; auto|NTSC|PAL" }, { NULL, NULL }, }; @@ -410,11 +412,6 @@ static void check_variables(void) { struct retro_variable var; - 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) |