Reorder params to be more logical

This commit is contained in:
Matt Nadareski
2020-09-18 10:45:40 -07:00
parent 3502a35dbd
commit e1cb29880d
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ namespace RombaSharp.Features
datfile.Header.Description = description; datfile.Header.Description = description;
datfile.PopulateFromDir(source, asFiles: TreatAsFile.AaruFormat | TreatAsFile.CHD); datfile.PopulateFromDir(source, asFiles: TreatAsFile.AaruFormat | TreatAsFile.CHD);
datfile.ApplyCleaning(new Cleaner() { ExcludeFields = Hash.DeepHashes.AsFields() }); datfile.ApplyCleaning(new Cleaner() { ExcludeFields = Hash.DeepHashes.AsFields() });
datfile.Write(outDir: outdat); datfile.Write(outdat);
} }
} }
} }

View File

@@ -3422,11 +3422,11 @@ namespace SabreTools.Library.DatFiles
/// Create and open an output file for writing direct from a dictionary /// Create and open an output file for writing direct from a dictionary
/// </summary> /// </summary>
/// <param name="outDir">Set the output directory (current directory on null)</param> /// <param name="outDir">Set the output directory (current directory on null)</param>
/// <param name="ignoreblanks">True if blank roms should be skipped on output, false otherwise (default)</param>
/// <param name="overwrite">True if files should be overwritten (default), false if they should be renamed instead</param> /// <param name="overwrite">True if files should be overwritten (default), false if they should be renamed instead</param>
/// <param name="ignoreblanks">True if blank roms should be skipped on output, false otherwise (default)</param>
/// <param name="throwOnError">True if the error that is thrown should be thrown back to the caller, false otherwise</param> /// <param name="throwOnError">True if the error that is thrown should be thrown back to the caller, false otherwise</param>
/// <returns>True if the DAT was written correctly, false otherwise</returns> /// <returns>True if the DAT was written correctly, false otherwise</returns>
public bool Write(string outDir, bool ignoreblanks = false, bool overwrite = true, bool throwOnError = false) public bool Write(string outDir, bool overwrite = true, bool ignoreblanks = false, bool throwOnError = false)
{ {
// If we have nothing writable, abort // If we have nothing writable, abort
if (!HasWritable()) if (!HasWritable())