Account for game names having quotes in them, fixes NES Ivan Ironman Stewart's Super Off-Road

This commit is contained in:
adelikat 2016-10-13 20:16:26 -05:00
parent ed5b4120a5
commit 2c1f0013c3
1 changed files with 2 additions and 1 deletions

View File

@ -258,7 +258,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 - 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
// zero 06-nov-2015 - regarding the below, i changed my mind. for libretro i want subdirectories here.
var filesystemDir = Path.GetDirectoryName(filesystemSafeName);