forked from DodoCooker/ArkSavegameToolkit
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various changes following testing. Added support for files larger tha…
…n 4GB. (#7) * Rolled back my hibernation change of checking for "-52" - it fails on most saves I have tried but skipping an extra 112 bytes if the V9 check fails seems to do the trick. Added ArkSaveGame.StoredDataOffsets - read in during readBinaryHeader() As hinted by Alex, StructCustomItemDataRef was 2 bytes, 2nd byte represents index of stored data offset pairs. Added new class to hold the cryo, offset position and data in bytes to speed up read using parallel loop. CryoStoreData Re-worked readStoredBinaryObjects() to map and use memory based byte arrays when reading in cryo creature data. * Generic loop to readin the stored offset data in V10+ header. --------- Co-authored-by: cadon <[email protected]>
- Loading branch information
1 parent
6665ccc
commit 7e0b4a2
Showing
3 changed files
with
171 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace SavegameToolkit.Types | ||
{ | ||
public class CryoStoreData | ||
{ | ||
|
||
public GameObject ParentObject { get; set; } | ||
public int StoreDataIndex { get; set; } = 1; | ||
public long Offset { get; set; } | ||
public byte[] Data { get; set; } | ||
|
||
} | ||
} |