mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Output] Minor update to romba output, minor update to finding an "empty" dictionary
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user