diff options
author | retro-wertz | 2018-06-08 22:04:19 +0800 |
---|---|---|
committer | retro-wertz | 2018-06-08 22:04:19 +0800 |
commit | 1477f55777983de6446581d1f21b855ece7dc6cb (patch) | |
tree | 0e2626b041c23adbc7b47fa4ba9186e548e3e772 | |
parent | c6e7ce9ef2e39e798dfc0b0fe071064b11b4ca9e (diff) | |
download | pcsx_rearmed-1477f55777983de6446581d1f21b855ece7dc6cb.tar.gz pcsx_rearmed-1477f55777983de6446581d1f21b855ece7dc6cb.tar.bz2 pcsx_rearmed-1477f55777983de6446581d1f21b855ece7dc6cb.zip |
Fix core not finding bios file
-rw-r--r-- | frontend/libretro.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c index 70dc171..708e497 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -1619,7 +1619,7 @@ static bool find_any_bios(const char *dirpath, char *path, size_t path_size) if (strncasecmp(ent->d_name, "scph", 4) != 0) continue; - snprintf(path, path_size, "%s/%s", dirpath, ent->d_name); + snprintf(path, path_size, "%s%c%s", dirpath, SLASH, ent->d_name); ret = try_use_bios(path); if (ret) break; @@ -1639,7 +1639,10 @@ static void check_system_specs(void) void retro_init(void) { - const char *bios[] = { "SCPH101", "SCPH7001", "SCPH5501", "SCPH1001" }; + const char *bios[] = { + "SCPH101", "SCPH7001", "SCPH5501", "SCPH1001", + "scph101", "scph7001", "scph5501", "scph1001" + }; const char *dir; char path[256]; int i, ret; @@ -1689,7 +1692,7 @@ void retro_init(void) snprintf(Config.BiosDir, sizeof(Config.BiosDir), "%s", dir); for (i = 0; i < sizeof(bios) / sizeof(bios[0]); i++) { - snprintf(path, sizeof(path), "%s/%s.bin", dir, bios[i]); + snprintf(path, sizeof(path), "%s%c%s.bin", dir, SLASH, bios[i]); found_bios = try_use_bios(path); if (found_bios) break; |