Rename start to offset.
This commit is contained in:
parent
df66145e5a
commit
5221c977fe
|
@ -26,7 +26,7 @@ namespace Temple_Gates_Extractor
|
||||||
string path = Path.GetDirectoryName(args[0]) + "\\" + Path.GetFileNameWithoutExtension(args[0]) + "\\";
|
string path = Path.GetDirectoryName(args[0]) + "\\" + Path.GetFileNameWithoutExtension(args[0]) + "\\";
|
||||||
foreach (Subfile file in subfiles)
|
foreach (Subfile file in subfiles)
|
||||||
{
|
{
|
||||||
br.BaseStream.Position = file.start;
|
br.BaseStream.Position = file.offset;
|
||||||
Directory.CreateDirectory(path + Path.GetDirectoryName(file.name));
|
Directory.CreateDirectory(path + Path.GetDirectoryName(file.name));
|
||||||
BinaryWriter bw = new(File.Create(path + file.name));
|
BinaryWriter bw = new(File.Create(path + file.name));
|
||||||
bw.Write(br.ReadBytes(file.size));
|
bw.Write(br.ReadBytes(file.size));
|
||||||
|
@ -39,7 +39,7 @@ namespace Temple_Gates_Extractor
|
||||||
int unknown1 = br.ReadInt32();
|
int unknown1 = br.ReadInt32();
|
||||||
int unknown2 = br.ReadInt32();
|
int unknown2 = br.ReadInt32();
|
||||||
float checksum = br.ReadSingle();
|
float checksum = br.ReadSingle();
|
||||||
public int start = br.ReadInt32();
|
public int offset = br.ReadInt32();
|
||||||
public int size = br.ReadInt32();
|
public int size = br.ReadInt32();
|
||||||
int unknown3 = br.ReadInt32();
|
int unknown3 = br.ReadInt32();
|
||||||
int unknown4 = br.ReadInt32();
|
int unknown4 = br.ReadInt32();
|
||||||
|
|
Loading…
Reference in New Issue