Read the magic and throw an error if it's wrong.

This commit is contained in:
Michael Hinrichs 2025-10-02 13:31:27 -05:00
parent 1bb2b7c0ce
commit a16cbee92f
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ namespace LuckCatchers_Extractor
static void Main(string[] args) static void Main(string[] args)
{ {
br = new(File.OpenRead(args[0])); 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<Subfile> subfiles = new() System.Collections.Generic.List<Subfile> subfiles = new()
{ {