From a16cbee92fe1bfb233359fbe777628044d5f1416 Mon Sep 17 00:00:00 2001 From: NintenHero Date: Thu, 2 Oct 2025 13:31:27 -0500 Subject: [PATCH] Read the magic and throw an error if it's wrong. --- Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index 93954b1..4480cc3 100644 --- a/Program.cs +++ b/Program.cs @@ -11,7 +11,8 @@ namespace LuckCatchers_Extractor static void Main(string[] args) { br = new(File.OpenRead(args[0])); - br.BaseStream.Position = 8; + if (new string(br.ReadChars(8)) != "VOLUME0\0") + throw new System.Exception("This is not a LuckCatchers res file."); System.Collections.Generic.List subfiles = new() {