mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 22:06:40 -05:00
Fix DARC repack grabbing from the wrong offsets
This commit is contained in:
@@ -328,7 +328,7 @@ internal static bool insertFile(DARC orig, int index, byte[] data)
|
||||
try
|
||||
{
|
||||
uint oldLength = orig.Entries[index].DataLength;
|
||||
uint offset = orig.Entries[index].DataOffset;
|
||||
uint offset = orig.Entries[index].DataOffset - orig.Header.FileDataOffset;
|
||||
int diff = (int) (data.Length - oldLength);
|
||||
|
||||
// Insert into Data Block
|
||||
|
||||
Reference in New Issue
Block a user