diff --git a/LibGGPK/Records/DirectoryRecord.cs b/LibGGPK/Records/DirectoryRecord.cs index 45a887d..e30f64f 100644 --- a/LibGGPK/Records/DirectoryRecord.cs +++ b/LibGGPK/Records/DirectoryRecord.cs @@ -113,13 +113,13 @@ public override void Write(BinaryWriter bw, Dictionary changedOffset /// Path of pack file that contains this record /// Previous name hash of entry /// New offset of entry - public void UpdateOffset(string ggpkPath, uint nameHash, long newEntryOffset) + public void UpdateOffset(FileStream ggpkFileStream, uint nameHash, long newEntryOffset) { var entry = Entries.FirstOrDefault(e => e.EntryNameHash == nameHash); if (entry.Offset == 0 ) throw new ApplicationException("Entry not found!"); - using (var ggpkFileStream = File.Open(ggpkPath, FileMode.Open)) + //using (var ggpkFileStream = File.Open(ggpkPath, FileMode.Open)) { // Jump to the location of 'Entries' in the ggpk file and // change the entry for 'previousEntryOffset' to 'newEntryOffset' diff --git a/LibGGPK/Records/FileRecord.cs b/LibGGPK/Records/FileRecord.cs index 74dd67f..e422a8f 100644 --- a/LibGGPK/Records/FileRecord.cs +++ b/LibGGPK/Records/FileRecord.cs @@ -320,7 +320,8 @@ public void ReplaceContents(string ggpkPath, byte[] replacmentData, LinkedList