Merge pull request #663 from sbzappa/msu-1-support-macos

Fixed support of MSU-1 audio files on MacOS.
This commit is contained in:
bearoso 2020-09-07 11:53:39 -05:00 committed by GitHub
commit 8d2bc33023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]);
}
}