[Output] Minor update to romba output, minor update to finding an "empty" dictionary

This commit is contained in:
Matt Nadareski
2016-06-02 20:58:23 -07:00
parent 3e706fa0e8
commit 9179fa306f

View File

@@ -390,7 +390,7 @@ namespace SabreTools.Helper
// We can only write out if there's a SHA-1 // We can only write out if there's a SHA-1
if (rom.SHA1 != "") if (rom.SHA1 != "")
{ {
string name = "/" + rom.SHA1.Substring(0, 2) + "/" + rom.SHA1.Substring(2, 2) + "/" + rom.SHA1.Substring(4, 2) + "/" + string name = rom.SHA1.Substring(0, 2) + "/" + rom.SHA1.Substring(2, 2) + "/" + rom.SHA1.Substring(4, 2) + "/" +
rom.SHA1.Substring(6, 2) + "/" + rom.SHA1 + ".gz"; rom.SHA1.Substring(6, 2) + "/" + rom.SHA1 + ".gz";
state += pre + name + post + "\n"; state += pre + name + post + "\n";
} }
@@ -499,7 +499,7 @@ namespace SabreTools.Helper
string footer = ""; string footer = "";
// If we have roms, output the full footer // If we have roms, output the full footer
if (datdata.Roms.Count > 0) if (datdata.Roms != null && datdata.Roms.Count > 0)
{ {
switch (datdata.OutputFormat) switch (datdata.OutputFormat)
{ {