Read the magic and throw an error if it's wrong.
This commit is contained in:
parent
1bb2b7c0ce
commit
a16cbee92f
|
@ -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<Subfile> subfiles = new()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue