}// ----------------------------------------- // Check for input parameters // :: ------------------------ private void check_parameters() { p.archiver_ext = '.' + ArchiveMaster.getCompressionSettings(p.archiveSettingsInd).Item1; p.tempDir = CDCRUSH.getSubTempDir(); if (!FileTools.createDirectory(p.tempDir)) { fail(msg: "Can't create TEMP dir"); return; } if (!CDCRUSH.check_file_(p.inputFile, ".cue")) { fail(msg: CDCRUSH.ERROR); return; } if (string.IsNullOrEmpty(p.outputDir)) { p.outputDir = Path.GetDirectoryName(p.inputFile); } if (!FileTools.createDirectory(p.outputDir)) { fail(msg: "Can't create Output Dir " + p.outputDir); return; } }
}// ----------------------------------------- void check_parameters() { // Check for input files // -------------------- if (!CDCRUSH.check_file_(p.inputFile, CDCRUSH.CDCRUSH_EXTENSIONS)) { fail(msg: CDCRUSH.ERROR); return; } if (string.IsNullOrEmpty(p.outputDir)) { p.outputDir = Path.GetDirectoryName(p.inputFile); } // -- Output folder check if (p.flag_folder) { p.outputDir = CDCRUSH.checkCreateUniqueOutput(p.outputDir, Path.GetFileNameWithoutExtension(p.inputFile)); if (p.outputDir == null) { fail("Output Dir Error " + p.outputDir); return; } } else { if (!FileTools.createDirectory(p.outputDir)) { fail(msg: "Can't create Output Dir " + p.outputDir); return; } } // -- p.tempDir = CDCRUSH.getSubTempDir(); if (!FileTools.createDirectory(p.tempDir)) { fail(msg: "Can't create TEMP dir"); return; } }// ------------------