mirror of https://github.com/snes9xgit/snes9x.git
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:
parent
ba8b9711d6
commit
3eab70c1e1
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue