[DatFile] Add AttractMode as valid input and output format

This commit is contained in:
Matt Nadareski
2016-11-04 11:17:15 -07:00
parent 3c33276d39
commit 9df9e4c284
7 changed files with 153 additions and 3 deletions

View File

@@ -102,6 +102,12 @@ namespace SabreTools.Helper.Tools
// Get the extensions from the output type
// AttractMode
if ((datdata.DatFormat & DatFormat.AttractMode) != 0)
{
outfileNames.Add(DatFormat.AttractMode, CreateOutfileNamesHelper(outDir, ".txt", datdata, overwrite));
}
// ClrMamePro
if ((datdata.DatFormat & DatFormat.ClrMamePro) != 0)
{
@@ -135,10 +141,16 @@ namespace SabreTools.Helper.Tools
};
// Missfile
if ((datdata.DatFormat & DatFormat.MissFile) != 0)
if ((datdata.DatFormat & DatFormat.MissFile) != 0
&& (datdata.DatFormat & DatFormat.AttractMode) == 0)
{
outfileNames.Add(DatFormat.MissFile, CreateOutfileNamesHelper(outDir, ".txt", datdata, overwrite));
};
if ((datdata.DatFormat & DatFormat.MissFile) != 0
&& (datdata.DatFormat & DatFormat.AttractMode) != 0)
{
outfileNames.Add(DatFormat.MissFile, CreateOutfileNamesHelper(outDir, ".miss.txt", datdata, overwrite));
};
// OfflineList
if (((datdata.DatFormat & DatFormat.OfflineList) != 0)