From f951b5e9324e7b69b60c6c102aeac6716dac9b24 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 22 Jul 2012 20:26:38 +0000 Subject: [PATCH] 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 --- BizHawk.MultiClient/config/PathManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/config/PathManager.cs b/BizHawk.MultiClient/config/PathManager.cs index d6a628158f..615d9a4ac8 100644 --- a/BizHawk.MultiClient/config/PathManager.cs +++ b/BizHawk.MultiClient/config/PathManager.cs @@ -281,7 +281,10 @@ namespace BizHawk.MultiClient { string filesystemSafeName = game.Name.Replace("|", "+"); 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)