upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/tools/rpf9dump/Program.cs
diff options
context:
space:
mode:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:16:41 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:16:41 -0500
commit20960a0112eac250ce4693b9bdbfa2c3b13c76df (patch)
tree88969bf3895efb1ff025bbace248dd655ede2f34 /tools/rpf9dump/Program.cs
parentbad38096fce28deb87d05bc4e6b6e61d601555a5 (diff)
parent046de42647dd6d92a5a60343e9257598408921ac (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.cs3
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.
38if (!File.Exists(src)) { Console.Error.WriteLine($"source is not a file: {src}"); return 2; }
36var json = new JsonSerializerOptions { WriteIndented = true }; 39var json = new JsonSerializerOptions { WriteIndented = true };
37var sw = Stopwatch.StartNew(); 40var sw = Stopwatch.StartNew();
38string baseName = Path.GetFileNameWithoutExtension(src); 41string baseName = Path.GetFileNameWithoutExtension(src);