mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatFile] Fix some issues with missfile write
This commit is contained in:
@@ -995,6 +995,9 @@ namespace SabreTools.Helper.Dats
|
||||
.Replace("%crc%", string.Empty)
|
||||
.Replace("%md5%", string.Empty)
|
||||
.Replace("%sha1%", string.Empty)
|
||||
.Replace("%sha256%", string.Empty)
|
||||
.Replace("%sha384%", string.Empty)
|
||||
.Replace("%sha512%", string.Empty)
|
||||
.Replace("%size%", string.Empty);
|
||||
post = post
|
||||
.Replace("%game%", rom.Machine.Name)
|
||||
@@ -1002,6 +1005,9 @@ namespace SabreTools.Helper.Dats
|
||||
.Replace("%crc%", string.Empty)
|
||||
.Replace("%md5%", string.Empty)
|
||||
.Replace("%sha1%", string.Empty)
|
||||
.Replace("%sha256%", string.Empty)
|
||||
.Replace("%sha384%", string.Empty)
|
||||
.Replace("%sha512%", string.Empty)
|
||||
.Replace("%size%", string.Empty);
|
||||
}
|
||||
|
||||
@@ -1037,6 +1043,8 @@ namespace SabreTools.Helper.Dats
|
||||
}
|
||||
|
||||
// Otherwise, use any flags
|
||||
else
|
||||
{
|
||||
name = (UseGame ? rom.Machine.Name : rom.Name);
|
||||
if (RepExt != "" || RemExt)
|
||||
{
|
||||
@@ -1067,6 +1075,8 @@ namespace SabreTools.Helper.Dats
|
||||
{
|
||||
state += pre + name + post + "\n";
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case DatFormat.OfflineList:
|
||||
state += "\t\t<game>\n"
|
||||
|
||||
Reference in New Issue
Block a user