[ALL] Centralize quote removal

This commit is contained in:
Matt Nadareski
2016-06-13 10:37:44 -07:00
parent a9ed019b1e
commit 36f24e68b7
8 changed files with 25 additions and 51 deletions

View File

@@ -1733,13 +1733,11 @@ namespace SabreTools.Helper
public static void Update(string inputFileName, DatData datdata, string outputDirectory, bool clean, string gamename, string romname,
string romtype, long sgt, long slt, long seq, string crc, string md5, string sha1, bool? nodump, Logger logger)
{
// Clean the input strings
inputFileName = inputFileName.Replace("\"", "");
// Clean the input string
if (inputFileName != "")
{
inputFileName = Path.GetFullPath(inputFileName);
}
outputDirectory = outputDirectory.Replace("\"", "");
if (File.Exists(inputFileName))
{