diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:16:41 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 23:16:41 -0500 |
| commit | 20960a0112eac250ce4693b9bdbfa2c3b13c76df (patch) | |
| tree | 88969bf3895efb1ff025bbace248dd655ede2f34 /tools/rpf9dump/Program.cs | |
| parent | bad38096fce28deb87d05bc4e6b6e61d601555a5 (diff) | |
| parent | 046de42647dd6d92a5a60343e9257598408921ac (diff) | |
Merge pull request #4636 from Michael
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/rpf9dump/Program.cs')
| -rw-r--r-- | tools/rpf9dump/Program.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/rpf9dump/Program.cs b/tools/rpf9dump/Program.cs index bf92e5aa7..4e0108518 100644 --- a/tools/rpf9dump/Program.cs +++ b/tools/rpf9dump/Program.cs | |||
| @@ -33,6 +33,9 @@ if (window && mode is not ("models" or "textures")) | |||
| 33 | Console.WriteLine("--start/--length apply to models and textures; other modes need a recognized archive."); | 33 | Console.WriteLine("--start/--length apply to models and textures; other modes need a recognized archive."); |
| 34 | return 2; | 34 | return 2; |
| 35 | } | 35 | } |
| 36 | // A missing source, or a directory passed as one, is a usage error. Check it before the output folder is | ||
| 37 | // created: FileInfo.Length would otherwise throw after <out>/<name> already exists. | ||
| 38 | if (!File.Exists(src)) { Console.Error.WriteLine($"source is not a file: {src}"); return 2; } | ||
| 36 | var json = new JsonSerializerOptions { WriteIndented = true }; | 39 | var json = new JsonSerializerOptions { WriteIndented = true }; |
| 37 | var sw = Stopwatch.StartNew(); | 40 | var sw = Stopwatch.StartNew(); |
| 38 | string baseName = Path.GetFileNameWithoutExtension(src); | 41 | string baseName = Path.GetFileNameWithoutExtension(src); |