From 43f24357371e81a350b3c14ad614d6a8701dbdc1 Mon Sep 17 00:00:00 2001 From: "Dan B (Narry)" Date: Sun, 6 May 2018 16:10:08 -0400 Subject: [PATCH] Filter out forward slashes in FileSystemSafeName to fix games such as "Super Mario Bros. / Duck Hunt". Fixes #1088 --- BizHawk.Client.Common/PathManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BizHawk.Client.Common/PathManager.cs b/BizHawk.Client.Common/PathManager.cs index 51826e93f5..a84563484a 100644 --- a/BizHawk.Client.Common/PathManager.cs +++ b/BizHawk.Client.Common/PathManager.cs @@ -231,7 +231,8 @@ namespace BizHawk.Client.Common var filesystemSafeName = game.Name .Replace("|", "+") .Replace(":", " -") // adelikat - Path.GetFileName scraps everything to the left of a colon unfortunately, so we need this hack here - .Replace("\"", ""); // adelikat - Ivan Ironman Stewart's Super Off-Road has quotes in game name + .Replace("\"", "") // adelikat - Ivan Ironman Stewart's Super Off-Road has quotes in game name + .Replace("/", "+"); // Narry - Mario Bros / Duck hunt has a slash in the name which GetDirectoryName and GetFileName treat as if it were a folder // zero 06-nov-2015 - regarding the below, i changed my mind. for libretro i want subdirectories here. var filesystemDir = Path.GetDirectoryName(filesystemSafeName);