mirror of
https://github.com/MichaelHinrichs/Ratalaika-Games-Spiller-Engine-Extractor.git
synced 2024-11-28 07:16:20 +00:00
Check file magic
This commit is contained in:
parent
27cb277b0e
commit
c6bef41191
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,9 @@ namespace Ratalaika_Games_Spiller_Engine_Extractor
|
||||||
private static void Main(string[] args)
|
private static void Main(string[] args)
|
||||||
{
|
{
|
||||||
br = new BinaryReader(File.OpenRead(args[0]));
|
br = new BinaryReader(File.OpenRead(args[0]));
|
||||||
br.ReadChars(15);//"Ratalaika Games"
|
if (new string(br.ReadChars(15)) != "Ratalaika Games")
|
||||||
|
throw new Exception("This is not a Spiller Engine \"assets.rgf\" file.");
|
||||||
|
|
||||||
br.BaseStream.Position = 32;
|
br.BaseStream.Position = 32;
|
||||||
int ZLibSize = br.ReadInt32();
|
int ZLibSize = br.ReadInt32();
|
||||||
int unknown1 = br.ReadInt32();
|
int unknown1 = br.ReadInt32();
|
||||||
|
|
Loading…
Reference in a new issue