fix issue where mario bros 3. gets auxilary files created as mario bros. how it got this way is a bit baffling, so i hope i didnt break anything

This commit is contained in:
zeromus 2012-07-22 20:26:38 +00:00
parent 75bed1f242
commit f951b5e932
1 changed files with 4 additions and 1 deletions

View File

@ -281,7 +281,10 @@ namespace BizHawk.MultiClient
{ {
string filesystemSafeName = game.Name.Replace("|", "+"); string filesystemSafeName = game.Name.Replace("|", "+");
filesystemSafeName = RemoveInvalidFileSystemChars(filesystemSafeName); filesystemSafeName = RemoveInvalidFileSystemChars(filesystemSafeName);
return Path.Combine(Path.GetDirectoryName(filesystemSafeName), Path.GetFileNameWithoutExtension(filesystemSafeName)); //zero 22-jul-2012 - i dont think this is used the same way it used to. game.Name shouldnt be a path, so this stuff is illogical.
//if game.Name is a path, then someone shouldve made it not-a-path already.
//return Path.Combine(Path.GetDirectoryName(filesystemSafeName), Path.GetFileNameWithoutExtension(filesystemSafeName));
return filesystemSafeName;
} }
public static string SaveRamPath(GameInfo game) public static string SaveRamPath(GameInfo game)