More work on Romba support, add special string replacement in MissFile output (undocumented externally)

This commit is contained in:
Matt Nadareski
2016-05-22 20:42:04 -07:00
parent b1554445c5
commit eb0b00724b
2 changed files with 8 additions and 2 deletions

View File

@@ -277,6 +277,10 @@ namespace SabreTools.Helper
string pre = datdata.Prefix + (datdata.Quotes ? "\"" : "");
string post = (datdata.Quotes ? "\"" : "") + datdata.Postfix;
// Check for special strings in prefix and postfix
pre = pre.Replace("%crc%", rom.CRC).Replace("%md5%", rom.MD5).Replace("%sha1%", rom.SHA1).Replace("%size%", rom.Size.ToString());
post = post.Replace("%crc%", rom.CRC).Replace("%md5%", rom.MD5).Replace("%sha1%", rom.SHA1).Replace("%size%", rom.Size.ToString());
// If we're in Romba mode, the state is consistent
if (datdata.Romba)
{