Rename vars to match private status

This commit is contained in:
Matt Nadareski
2016-04-06 00:47:28 -07:00
parent f968141ee7
commit ca4d69cd00
2 changed files with 17 additions and 17 deletions

View File

@@ -8,7 +8,7 @@ namespace SabreTools
{
public class SingleGame
{
private static string filename;
private static string _filename;
public static void Main(string[] args)
{
@@ -20,17 +20,17 @@ namespace SabreTools
return;
}
filename = args[0];
_filename = args[0];
// Take the filename, and load it as an XML document
XmlDocument doc = new XmlDocument();
try
{
doc.LoadXml(File.ReadAllText(filename));
doc.LoadXml(File.ReadAllText(_filename));
}
catch (XmlException)
{
doc.LoadXml(Converters.RomVaultToXML(File.ReadAllLines(filename)).ToString());
doc.LoadXml(Converters.RomVaultToXML(File.ReadAllLines(_filename)).ToString());
}
// We all start the same
@@ -109,7 +109,7 @@ namespace SabreTools
tempDoc.AppendChild(tempDoc.CreateDocumentType("datafile", "-//Logiqx//DTD ROM Management Datafile//EN", "http://www.logiqx.com/Dats/datafile.dtd", null));
tempDoc.AppendChild(outNode);
string outPath = Path.GetFileNameWithoutExtension(filename) + ".new" + Path.GetExtension(filename);
string outPath = Path.GetFileNameWithoutExtension(_filename) + ".new" + Path.GetExtension(_filename);
File.WriteAllText(outPath, Style.Beautify(tempDoc));
}