mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 17:02:53 +08:00
Added Save methods to YvrFile and YwrFile
This commit is contained in:
parent
2622ea08b6
commit
dd97b65933
@ -49,6 +49,13 @@ namespace CodeWalker.GameFiles
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public byte[] Save()
|
||||||
|
{
|
||||||
|
byte[] data = ResourceBuilder.Build(Records, 1); //yvr is type/version 1...
|
||||||
|
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,6 +49,13 @@ namespace CodeWalker.GameFiles
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public byte[] Save()
|
||||||
|
{
|
||||||
|
byte[] data = ResourceBuilder.Build(Waypoints, 1); //ywr is type/version 1...
|
||||||
|
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,9 +43,9 @@ namespace CodeWalker.GameFiles
|
|||||||
{
|
{
|
||||||
base.Write(writer, parameters);
|
base.Write(writer, parameters);
|
||||||
|
|
||||||
//// update structure data
|
// update structure data
|
||||||
//this.EntriesPointer = (ulong)(this.Entries?.Position ?? 0);
|
this.EntriesPointer = (ulong)(this.Entries?.FilePosition ?? 0);
|
||||||
//this.EntriesCount = (uint)(this.Entries?.Count ?? 0);
|
this.EntriesCount = (uint)(this.Entries?.Count ?? 0);
|
||||||
|
|
||||||
// write structure data
|
// write structure data
|
||||||
writer.Write(this.Unknown_10h);
|
writer.Write(this.Unknown_10h);
|
||||||
|
Loading…
Reference in New Issue
Block a user