From 3eab70c1e193ca92f15655956ea3e1aa16dd11a3 Mon Sep 17 00:00:00 2001 From: sbzappa Date: Mon, 7 Sep 2020 12:28:36 -0400 Subject: [PATCH] Fixed support of MSU-1 audio files on MacOS. Adjusted how MacOS specific implementation of S9xMSU1OpenFile builds up paths when calling _makepath to allow for enumeration suffixes (e.g. -1.pcm). --- macosx/mac-file.mm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/macosx/mac-file.mm b/macosx/mac-file.mm index c40641cb..2d6c8fa3 100644 --- a/macosx/mac-file.mm +++ b/macosx/mac-file.mm @@ -295,13 +295,17 @@ const char * S9xGetFilename (const char *inExt, enum s9x_getdirtype dirtype) else { _splitpath(Memory.ROMFilename, drive, dir, fname, ext); - _makepath(filePath[index], drive, dir, fname, inExt); + + strcat(fname, inExt); + _makepath(filePath[index], drive, dir, fname, ""); } } else { _splitpath(Memory.ROMFilename, drive, dir, fname, ext); - _makepath(filePath[index], drive, dir, fname, inExt); + + strcat(fname, inExt); + _makepath(filePath[index], drive, dir, fname, ""); } return (filePath[index]); @@ -436,4 +440,4 @@ const char * S9xGetDirectory (enum s9x_getdirtype dirtype) path[index][l - 1] = 0; return (path[index]); -} \ No newline at end of file +}