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).
This commit is contained in:
sbzappa 2020-09-07 12:28:36 -04:00
parent ba8b9711d6
commit 3eab70c1e1
1 changed files with 7 additions and 3 deletions

View File

@ -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]);
}
}