mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFiles/] Specific formats should not be exposed outside of the library
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using SabreTools.Library.Data;
|
using SabreTools.Library.Data;
|
||||||
@@ -23,7 +22,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of an AttractMode DAT
|
/// Represents parsing and writing of an AttractMode DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class AttractMode : DatFile
|
internal class AttractMode : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
@@ -24,7 +23,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of a ClrMamePro DAT
|
/// Represents parsing and writing of a ClrMamePro DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ClrMamePro : DatFile
|
internal class ClrMamePro : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
|
|||||||
@@ -3065,7 +3065,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
new ClrMamePro(this).ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
new ClrMamePro(this).ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
||||||
break;
|
break;
|
||||||
case DatFormat.CSV:
|
case DatFormat.CSV:
|
||||||
new SeparatedValue(this).ParseFile(filename, sysid, srcid, ',', keep, clean, remUnicode);
|
new SeparatedValue(this, ',').ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
||||||
break;
|
break;
|
||||||
case DatFormat.DOSCenter:
|
case DatFormat.DOSCenter:
|
||||||
new DosCenter(this).ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
new DosCenter(this).ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
||||||
@@ -3107,7 +3107,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
new SoftwareList(this).ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
new SoftwareList(this).ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
||||||
break;
|
break;
|
||||||
case DatFormat.TSV:
|
case DatFormat.TSV:
|
||||||
new SeparatedValue(this).ParseFile(filename, sysid, srcid, '\t', keep, clean, remUnicode);
|
new SeparatedValue(this, '\t').ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
@@ -5467,7 +5467,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
new ClrMamePro(this).WriteToFile(outfile, ignoreblanks);
|
new ClrMamePro(this).WriteToFile(outfile, ignoreblanks);
|
||||||
break;
|
break;
|
||||||
case DatFormat.CSV:
|
case DatFormat.CSV:
|
||||||
new SeparatedValue(this).WriteToFile(outfile, ',', ignoreblanks);
|
new SeparatedValue(this, ',').WriteToFile(outfile, ignoreblanks);
|
||||||
break;
|
break;
|
||||||
case DatFormat.DOSCenter:
|
case DatFormat.DOSCenter:
|
||||||
new DosCenter(this).WriteToFile(outfile, ignoreblanks);
|
new DosCenter(this).WriteToFile(outfile, ignoreblanks);
|
||||||
@@ -5512,7 +5512,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
new SoftwareList(this).WriteToFile(outfile, ignoreblanks);
|
new SoftwareList(this).WriteToFile(outfile, ignoreblanks);
|
||||||
break;
|
break;
|
||||||
case DatFormat.TSV:
|
case DatFormat.TSV:
|
||||||
new SeparatedValue(this).WriteToFile(outfile, '\t', ignoreblanks);
|
new SeparatedValue(this, '\t').WriteToFile(outfile, ignoreblanks);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of a DosCenter DAT
|
/// Represents parsing and writing of a DosCenter DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DosCenter : DatFile
|
internal class DosCenter : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
@@ -57,7 +57,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
bool remUnicode)
|
bool remUnicode)
|
||||||
{
|
{
|
||||||
// ClrMamePro and DosCenter parsing are identical so it just calls one implementation
|
// ClrMamePro and DosCenter parsing are identical so it just calls one implementation
|
||||||
(this as DatFile as ClrMamePro).ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
new ClrMamePro(this).ParseFile(filename, sysid, srcid, keep, clean, remUnicode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using SabreTools.Library.Data;
|
using SabreTools.Library.Data;
|
||||||
@@ -23,7 +22,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of a hashfile such as an SFV, MD5, or SHA-1 file
|
/// Represents parsing and writing of a hashfile such as an SFV, MD5, or SHA-1 file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Hashfile : DatFile
|
internal class Hashfile : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
@@ -24,7 +23,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of a MAME Listroms DAT
|
/// Represents parsing and writing of a MAME Listroms DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Listroms : DatFile
|
internal class Listroms : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of a Logiqx-derived DAT
|
/// Represents parsing and writing of a Logiqx-derived DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Logiqx : DatFile
|
internal class Logiqx : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using SabreTools.Library.Data;
|
using SabreTools.Library.Data;
|
||||||
@@ -22,7 +21,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of a Missfile
|
/// Represents parsing and writing of a Missfile
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Missfile : DatFile
|
internal class Missfile : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
@@ -23,7 +22,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of an OfflineList XML DAT
|
/// Represents parsing and writing of an OfflineList XML DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class OfflineList : DatFile
|
internal class OfflineList : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
@@ -24,7 +23,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of a RomCenter DAT
|
/// Represents parsing and writing of a RomCenter DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RomCenter : DatFile
|
internal class RomCenter : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of an SabreDat XML DAT
|
/// Represents parsing and writing of an SabreDat XML DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class SabreDat : DatFile
|
internal class SabreDat : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
|
|||||||
@@ -21,18 +21,23 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of a value-separated DAT
|
/// Represents parsing and writing of a value-separated DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class SeparatedValue : DatFile
|
internal class SeparatedValue : DatFile
|
||||||
{
|
{
|
||||||
|
// Private instance variables specific to Separated Value DATs
|
||||||
|
char _delim;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="datFile">Parent DatFile to copy from</param>
|
/// <param name="datFile">Parent DatFile to copy from</param>
|
||||||
public SeparatedValue(DatFile datFile)
|
/// <param name="delim">Delimiter for parsing individual lines</param>
|
||||||
|
public SeparatedValue(DatFile datFile, char delim)
|
||||||
{
|
{
|
||||||
this._datHeader = datFile._datHeader;
|
this._datHeader = datFile._datHeader;
|
||||||
this._items = datFile._items;
|
this._items = datFile._items;
|
||||||
this._sortedBy = datFile._sortedBy;
|
this._sortedBy = datFile._sortedBy;
|
||||||
this._datStats = datFile._datStats;
|
this._datStats = datFile._datStats;
|
||||||
|
_delim = delim;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -41,7 +46,6 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <param name="filename">Name of the file to be parsed</param>
|
/// <param name="filename">Name of the file to be parsed</param>
|
||||||
/// <param name="sysid">System ID for the DAT</param>
|
/// <param name="sysid">System ID for the DAT</param>
|
||||||
/// <param name="srcid">Source ID for the DAT</param>
|
/// <param name="srcid">Source ID for the DAT</param>
|
||||||
/// <param name="delim">Delimiter for parsing individual lines</param>
|
|
||||||
/// <param name="keep">True if full pathnames are to be kept, false otherwise (default)</param>
|
/// <param name="keep">True if full pathnames are to be kept, false otherwise (default)</param>
|
||||||
/// <param name="clean">True if game names are sanitized, false otherwise (default)</param>
|
/// <param name="clean">True if game names are sanitized, false otherwise (default)</param>
|
||||||
/// <param name="remUnicode">True if we should remove non-ASCII characters from output, false otherwise (default)</param>
|
/// <param name="remUnicode">True if we should remove non-ASCII characters from output, false otherwise (default)</param>
|
||||||
@@ -50,7 +54,6 @@ namespace SabreTools.Library.DatFiles
|
|||||||
string filename,
|
string filename,
|
||||||
int sysid,
|
int sysid,
|
||||||
int srcid,
|
int srcid,
|
||||||
char delim,
|
|
||||||
|
|
||||||
// Miscellaneous
|
// Miscellaneous
|
||||||
bool keep,
|
bool keep,
|
||||||
@@ -73,7 +76,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
// Parse the first line, getting types from the column names
|
// Parse the first line, getting types from the column names
|
||||||
if (linenum == 0)
|
if (linenum == 0)
|
||||||
{
|
{
|
||||||
string[] parsedColumns = line.Split(delim);
|
string[] parsedColumns = line.Split(_delim);
|
||||||
foreach (string parsed in parsedColumns)
|
foreach (string parsed in parsedColumns)
|
||||||
{
|
{
|
||||||
switch (parsed.ToLowerInvariant().Trim('"'))
|
switch (parsed.ToLowerInvariant().Trim('"'))
|
||||||
@@ -163,7 +166,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise, we want to split the line and parse
|
// Otherwise, we want to split the line and parse
|
||||||
string[] parsedLine = line.Split(delim);
|
string[] parsedLine = line.Split(_delim);
|
||||||
|
|
||||||
// If the line doesn't have the correct number of columns, we log and skip
|
// If the line doesn't have the correct number of columns, we log and skip
|
||||||
if (parsedLine.Length != columns.Count)
|
if (parsedLine.Length != columns.Count)
|
||||||
@@ -369,10 +372,9 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// Create and open an output file for writing direct from a dictionary
|
/// Create and open an output file for writing direct from a dictionary
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="outfile">Name of the file to write to</param>
|
/// <param name="outfile">Name of the file to write to</param>
|
||||||
/// <param name="delim">Delimiter for parsing individual lines</param>
|
|
||||||
/// <param name="ignoreblanks">True if blank roms should be skipped on output, false otherwise (default)</param>
|
/// <param name="ignoreblanks">True if blank roms should be skipped on output, false otherwise (default)</param>
|
||||||
/// <returns>True if the DAT was written correctly, false otherwise</returns>
|
/// <returns>True if the DAT was written correctly, false otherwise</returns>
|
||||||
public bool WriteToFile(string outfile, char delim, bool ignoreblanks = false)
|
public bool WriteToFile(string outfile, bool ignoreblanks = false)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -389,7 +391,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
StreamWriter sw = new StreamWriter(fs, new UTF8Encoding(false));
|
StreamWriter sw = new StreamWriter(fs, new UTF8Encoding(false));
|
||||||
|
|
||||||
// Write out the header
|
// Write out the header
|
||||||
WriteHeader(sw, delim);
|
WriteHeader(sw);
|
||||||
|
|
||||||
// Get a properly sorted set of keys
|
// Get a properly sorted set of keys
|
||||||
List<string> keys = Keys;
|
List<string> keys = Keys;
|
||||||
@@ -422,7 +424,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now, output the rom data
|
// Now, output the rom data
|
||||||
WriteDatItem(sw, delim, rom, ignoreblanks);
|
WriteDatItem(sw, rom, ignoreblanks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -443,14 +445,13 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// Write out DAT header using the supplied StreamWriter
|
/// Write out DAT header using the supplied StreamWriter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sw">StreamWriter to output to</param>
|
/// <param name="sw">StreamWriter to output to</param>
|
||||||
/// <param name="delim">Delimiter for parsing individual lines</param>
|
|
||||||
/// <returns>True if the data was written, false on error</returns>
|
/// <returns>True if the data was written, false on error</returns>
|
||||||
private bool WriteHeader(StreamWriter sw, char delim)
|
private bool WriteHeader(StreamWriter sw)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string header = string.Format("\"File Name\"{0}\"Internal Name\"{0}\"Description\"{0}\"Game Name\"{0}\"Game Description\"{0}\"Type\"{0}\"" +
|
string header = string.Format("\"File Name\"{0}\"Internal Name\"{0}\"Description\"{0}\"Game Name\"{0}\"Game Description\"{0}\"Type\"{0}\"" +
|
||||||
"Rom Name\"{0}\"Disk Name\"{0}\"Size\"{0}\"CRC\"{0}\"MD5\"{0}\"SHA1\"{0}\"SHA256\"{0}\"Nodump\"\n", delim);
|
"Rom Name\"{0}\"Disk Name\"{0}\"Size\"{0}\"CRC\"{0}\"MD5\"{0}\"SHA1\"{0}\"SHA256\"{0}\"Nodump\"\n", _delim);
|
||||||
|
|
||||||
// Write the header out
|
// Write the header out
|
||||||
sw.Write(header);
|
sw.Write(header);
|
||||||
@@ -469,11 +470,10 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// Write out DatItem using the supplied StreamWriter
|
/// Write out DatItem using the supplied StreamWriter
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sw">StreamWriter to output to</param>
|
/// <param name="sw">StreamWriter to output to</param>
|
||||||
/// <param name="delim">Delimiter for parsing individual lines</param>
|
|
||||||
/// <param name="rom">DatItem object to be output</param>
|
/// <param name="rom">DatItem object to be output</param>
|
||||||
/// <param name="ignoreblanks">True if blank roms should be skipped on output, false otherwise (default)</param>
|
/// <param name="ignoreblanks">True if blank roms should be skipped on output, false otherwise (default)</param>
|
||||||
/// <returns>True if the data was written, false on error</returns>
|
/// <returns>True if the data was written, false on error</returns>
|
||||||
private bool WriteDatItem(StreamWriter sw, char delim, DatItem rom, bool ignoreblanks = false)
|
private bool WriteDatItem(StreamWriter sw, DatItem rom, bool ignoreblanks = false)
|
||||||
{
|
{
|
||||||
// If we are in ignore blanks mode AND we have a blank (0-size) rom, skip
|
// If we are in ignore blanks mode AND we have a blank (0-size) rom, skip
|
||||||
if (ignoreblanks
|
if (ignoreblanks
|
||||||
@@ -580,7 +580,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
+ "{0}\"" + ((Rom)rom).SHA256 + "\""
|
+ "{0}\"" + ((Rom)rom).SHA256 + "\""
|
||||||
// + "{0}\"" + ((Rom)rom).SHA384 + "\""
|
// + "{0}\"" + ((Rom)rom).SHA384 + "\""
|
||||||
// + "{0}\"" + ((Rom)rom).SHA512 + "\""
|
// + "{0}\"" + ((Rom)rom).SHA512 + "\""
|
||||||
+ "{0}" + (((Rom)rom).ItemStatus != ItemStatus.None ? "\"" + ((Rom)rom).ItemStatus.ToString() + "\"" : "\"\""), delim);
|
+ "{0}" + (((Rom)rom).ItemStatus != ItemStatus.None ? "\"" + ((Rom)rom).ItemStatus.ToString() + "\"" : "\"\""), _delim);
|
||||||
state += pre + inline + post + "\n";
|
state += pre + inline + post + "\n";
|
||||||
}
|
}
|
||||||
else if (rom.Type == ItemType.Disk)
|
else if (rom.Type == ItemType.Disk)
|
||||||
@@ -600,7 +600,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
+ "{0}\"" + ((Disk)rom).SHA256 + "\""
|
+ "{0}\"" + ((Disk)rom).SHA256 + "\""
|
||||||
// + "{0}\"" + ((Rom)rom).SHA384 + "\""
|
// + "{0}\"" + ((Rom)rom).SHA384 + "\""
|
||||||
// + "{0}\"" + ((Rom)rom).SHA512 + "\""
|
// + "{0}\"" + ((Rom)rom).SHA512 + "\""
|
||||||
+ "{0}" + (((Disk)rom).ItemStatus != ItemStatus.None ? "\"" + ((Disk)rom).ItemStatus.ToString() + "\"" : "\"\""), delim);
|
+ "{0}" + (((Disk)rom).ItemStatus != ItemStatus.None ? "\"" + ((Disk)rom).ItemStatus.ToString() + "\"" : "\"\""), _delim);
|
||||||
state += pre + inline + post + "\n";
|
state += pre + inline + post + "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
@@ -23,7 +22,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents parsing and writing of an SabreDat XML DAT
|
/// Represents parsing and writing of an SabreDat XML DAT
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class SoftwareList : DatFile
|
internal class SoftwareList : DatFile
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Constructor designed for casting a base DatFile
|
/// Constructor designed for casting a base DatFile
|
||||||
@@ -37,6 +36,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
this._datStats = datFile._datStats;
|
this._datStats = datFile._datStats;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parse an SabreDat XML DAT and return all found games and roms within
|
/// Parse an SabreDat XML DAT and return all found games and roms within
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user