mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Close stream after reading compressed ARL.
This commit is contained in:
parent
e2f89b08fa
commit
d363031399
1 changed files with 1 additions and 0 deletions
|
|
@ -329,6 +329,7 @@ PPC_FUNC(sub_82E0D3E8)
|
||||||
{
|
{
|
||||||
void* compressedFileData = g_userHeap.Alloc(arlFileSize);
|
void* compressedFileData = g_userHeap.Alloc(arlFileSize);
|
||||||
stream.read(reinterpret_cast<char*>(compressedFileData), arlFileSize);
|
stream.read(reinterpret_cast<char*>(compressedFileData), arlFileSize);
|
||||||
|
stream.close();
|
||||||
|
|
||||||
auto fileData = decompressLzx(ctx, base, reinterpret_cast<uint8_t*>(compressedFileData), arlFileSize, nullptr);
|
auto fileData = decompressLzx(ctx, base, reinterpret_cast<uint8_t*>(compressedFileData), arlFileSize, nullptr);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue