Skip to content

Commit effb09e

Browse files
Check for uppercase PRC and PDB extensions as well in ZIP files.
1 parent d7dd7e2 commit effb09e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

libretroBuildSystem/libretro.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,10 @@ bool loadContentFileNonSRAM(uint32_t *error, uint8_t *contentData,
490490
continue;
491491

492492
// Not a PDB or PRC?
493-
if (0 != strcasecmp((lookStage == 0 ? ".pdb" : ".prc"),
494-
&stat.m_filename[fileNameLen - 4]))
493+
if ((0 != strcasecmp((lookStage == 0 ? ".pdb" : ".prc"),
494+
&stat.m_filename[fileNameLen - 4])) ||
495+
(0 != strcasecmp((lookStage == 0 ? ".PDB" : ".PRC"),
496+
&stat.m_filename[fileNameLen - 4])))
495497
continue;
496498

497499
// Allocate buffer for the data
@@ -506,8 +508,8 @@ bool loadContentFileNonSRAM(uint32_t *error, uint8_t *contentData,
506508
0, NULL, 0))
507509
{
508510
// Notice
509-
log_cb(RETRO_LOG_INFO, "Installing from ZIP: %s\n",
510-
stat.m_filename);
511+
log_cb(RETRO_LOG_INFO,
512+
"Installing from ZIP: %s\n", stat.m_filename);
511513

512514
// Install the file
513515
newError = launcherInstallFile(entryBuf,

0 commit comments

Comments
 (0)