mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-18 10:52:08 +08:00
YPT/XML conversion progress
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1739,8 +1739,8 @@ namespace CodeWalker.GameFiles
|
|||||||
|
|
||||||
// structure data
|
// structure data
|
||||||
public ulong EntriesPointer { get; private set; }
|
public ulong EntriesPointer { get; private set; }
|
||||||
public ushort EntriesCount { get; private set; }
|
public ushort EntriesCount { get; set; }
|
||||||
public ushort EntriesCapacity { get; private set; }
|
public ushort EntriesCapacity { get; set; }
|
||||||
|
|
||||||
// reference data
|
// reference data
|
||||||
//public ResourcePointerArray64<T> Entries;
|
//public ResourcePointerArray64<T> Entries;
|
||||||
@@ -1748,6 +1748,8 @@ namespace CodeWalker.GameFiles
|
|||||||
public ulong[] data_pointers { get; private set; }
|
public ulong[] data_pointers { get; private set; }
|
||||||
public T[] data_items { get; set; }
|
public T[] data_items { get; set; }
|
||||||
|
|
||||||
|
public bool ManualCountOverride = false; //use this to manually specify the count
|
||||||
|
|
||||||
private ResourcePointerArray64<T> data_block;//used for saving.
|
private ResourcePointerArray64<T> data_block;//used for saving.
|
||||||
|
|
||||||
|
|
||||||
@@ -1777,8 +1779,11 @@ namespace CodeWalker.GameFiles
|
|||||||
{
|
{
|
||||||
// update...
|
// update...
|
||||||
this.EntriesPointer = (ulong)(this.data_block != null ? this.data_block.FilePosition : 0);
|
this.EntriesPointer = (ulong)(this.data_block != null ? this.data_block.FilePosition : 0);
|
||||||
this.EntriesCount = (ushort)(this.data_block != null ? this.data_block.Count : 0);
|
if (ManualCountOverride == false)
|
||||||
this.EntriesCapacity = (ushort)(this.data_block != null ? this.data_block.Count : 0);
|
{
|
||||||
|
this.EntriesCapacity = (ushort)(this.data_block != null ? this.data_block.Count : 0);
|
||||||
|
this.EntriesCount = (ushort)(this.data_block != null ? this.data_block.Count : 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// write...
|
// write...
|
||||||
|
|||||||
Reference in New Issue
Block a user