rm-NoobInCoding / UnPSARC

Archive Unpacker/Packer For PlayStation Archive (PSARC) Files
https://discord.gg/zjx3dgmx
MIT License
39 stars 5 forks source link

[Bug Report] GoT Extracted files from v2.1 are all empty (0kb) #7

Closed Foul-Tarnished closed 5 months ago

Foul-Tarnished commented 5 months ago

The programs extract files succesfuly, but it doesn't: all sps and xpps are zero bytes in size

2.0 does work fine, except it sometimes throw errors like

Unhandled Exception: System.IO.InvalidDataException: Found invalid data while decoding.
   at System.IO.Compression.InflaterZlib.Inflate(FlushCode flushCode)
   at System.IO.Compression.InflaterZlib.ReadInflateOutput(Byte[] outputBuffer, Int32 offset, Int32 length, FlushCode flushCode, Int32& bytesRead)
   at System.IO.Compression.InflaterZlib.Inflate(Byte[] bytes, Int32 offset, Int32 length)
   at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
   at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize)
   at UnPSARC.Zlib.Decompress(Byte[] Data) in C:\Users\PCMOD\source\repos\UnPSARC\Compression\Zlib.cs:line 16
   at UnPSARC.IOHelper.ReadAtOffset(Stream s, Int64 Offset, Int64 size, Int32 ZSize, String CompressionType) in C:\Users\PCMOD\source\repos\UnPSARC\Helpers\IOHelper.cs:line 26
   at UnPSARC.Archive.TryUnpack(Stream Reader, TEntry ThisEntry, TZSize[] ZSizes, Int32 BlockSize, String CompressionType) in C:\Users\PCMOD\source\repos\UnPSARC\Archive.cs:line 56
   at UnPSARC.Archive.Unpack(Stream ArchiveRaw, String Folder) in C:\Users\PCMOD\source\repos\UnPSARC\Archive.cs:line 24
   at UnPSARC.Program.UnpackArchiveFile(String inputPath, String outputDirectory) in C:\Users\PCMOD\source\repos\UnPSARC\Program.cs:line 161
   at UnPSARC.Program.Main(String[] args) in C:\Users\PCMOD\source\repos\UnPSARC\Program.cs:line 76