Hack for FilesystemSafeName to remove . if it is the last character in the name (Such as Super Mario bros.) since this method is used for path building
This commit is contained in:
parent
70fbbd5817
commit
711c9b52e4
|
@ -237,6 +237,14 @@ namespace BizHawk.Client.Common
|
|||
// 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));
|
||||
|
||||
// adelikat:
|
||||
// This hack is to prevent annoying things like Super Mario Bros..bk2
|
||||
if (filesystemSafeName.EndsWith("."))
|
||||
{
|
||||
return filesystemSafeName.Remove(filesystemSafeName.Length - 1, 1);
|
||||
}
|
||||
|
||||
return filesystemSafeName;
|
||||
}
|
||||
|
||||
|
|
|
@ -82,10 +82,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
movieToRecord.TextSavestate = sw.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
//var bytestate = Global.Emulator.SaveStateBinary();
|
||||
//string stringstate = Convert.ToBase64String(bytestate);
|
||||
//movieToRecord.SavestateBinaryBase64Blob = stringstate;
|
||||
}
|
||||
|
||||
// Header
|
||||
|
|
Loading…
Reference in New Issue