mirror of
https://github.com/SabreTools/MPF.git
synced 2026-05-18 19:34:55 +00:00
Add default subfolder to CLI outputs
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
- Update Redumper to build 676 (rename asus flags to mediatek)
|
||||
- Use default media type if not provided
|
||||
- Update Redumper to build 682 (Dreamcast support)
|
||||
- Add default subfolder to CLI outputs
|
||||
|
||||
### 3.6.0 (2025-11-28)
|
||||
|
||||
|
||||
@@ -174,7 +174,8 @@ namespace MPF.CLI.Features
|
||||
// Normalize the file path
|
||||
if (DevicePath != null && FilePath == null)
|
||||
{
|
||||
FilePath = $"track_{DateTime.Now:yyyyMMdd-HHmm}.bin";
|
||||
string defaultFileName = $"track_{DateTime.Now:yyyyMMdd-HHmm}";
|
||||
FilePath = Path.Combine(defaultFileName, $"{defaultFileName}.bin");
|
||||
if (Options.DefaultOutputPath != null)
|
||||
FilePath = Path.Combine(Options.DefaultOutputPath, FilePath);
|
||||
}
|
||||
|
||||
@@ -38,7 +38,12 @@ namespace MPF.CLI.Features
|
||||
|
||||
// Create return values
|
||||
MediaType = SabreTools.RedumpLib.Data.MediaType.NONE;
|
||||
FilePath = Path.Combine(Options.DefaultOutputPath ?? "ISO", $"track_{DateTime.Now:yyyyMMdd-HHmm}.bin");
|
||||
string defaultFileName = $"track_{DateTime.Now:yyyyMMdd-HHmm}";
|
||||
#if NET20 || NET35
|
||||
FilePath = Path.Combine(Options.DefaultOutputPath ?? "ISO", Path.Combine(defaultFileName, $"{defaultFileName}.bin"));
|
||||
#else
|
||||
FilePath = Path.Combine(Options.DefaultOutputPath ?? "ISO", defaultFileName, $"{defaultFileName}.bin");
|
||||
#endif
|
||||
System = Options.DefaultSystem;
|
||||
|
||||
// Create state values
|
||||
|
||||
Reference in New Issue
Block a user