mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix quirks in inplace outputs
This commit is contained in:
@@ -127,7 +127,7 @@ namespace SabreTools
|
||||
{
|
||||
datHeaders.Add(new DatData
|
||||
{
|
||||
FileName = Path.GetFullPath(userData.FileName),
|
||||
FileName = userData.FileName,
|
||||
Name = userData.Name,
|
||||
Description = userData.Description,
|
||||
Version = userData.Version,
|
||||
@@ -148,7 +148,7 @@ namespace SabreTools
|
||||
userData.Category = "";
|
||||
userData.Author = "";
|
||||
userData.ForcePacking = ForcePacking.None;
|
||||
userData.OutputFormat = OutputFormat.Xml;
|
||||
userData.OutputFormat = OutputFormat.None;
|
||||
userData.Type = "";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,7 +99,8 @@ namespace SabreTools.Helper
|
||||
/// </summary>
|
||||
public enum OutputFormat
|
||||
{
|
||||
Xml = 0,
|
||||
None = 0,
|
||||
Xml,
|
||||
ClrMamePro,
|
||||
RomCenter,
|
||||
DOSCenter,
|
||||
|
||||
@@ -100,6 +100,12 @@ namespace SabreTools.Helper
|
||||
datdata.FileName = Path.GetFileNameWithoutExtension(filename);
|
||||
}
|
||||
|
||||
// If the output type isn't set already, get the internal output type
|
||||
if (datdata.OutputFormat == OutputFormat.None)
|
||||
{
|
||||
datdata.OutputFormat = GetOutputFormat(filename);
|
||||
}
|
||||
|
||||
// Make sure there's a dictionary to read to
|
||||
if (datdata.Roms == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user