diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2022-06-07 13:03:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-07 16:03:27 -0400 |
| commit | fb9dd3cdee440e61d96ddd2efd0216a99df14997 (patch) | |
| tree | 32653af10f8b8d3d56f0ae05fc37df8c2d222646 /libs/JSystem/JKernel/JKRFileCache.cpp | |
| parent | 3c962112db3d3644c67c67a40fdb3a1deb5f13dc (diff) | |
JKRDvdRipper, JKRSolidHeap (#199)
Diffstat (limited to 'libs/JSystem/JKernel/JKRFileCache.cpp')
| -rw-r--r-- | libs/JSystem/JKernel/JKRFileCache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/JSystem/JKernel/JKRFileCache.cpp b/libs/JSystem/JKernel/JKRFileCache.cpp index 5a0884456c..33f231947c 100644 --- a/libs/JSystem/JKernel/JKRFileCache.cpp +++ b/libs/JSystem/JKernel/JKRFileCache.cpp @@ -222,14 +222,14 @@ void* JKRFileCache::getResource(const char* path) { CCacheBlock* cacheBlock = findCacheBlock(dvdFile.getFileID()); if (!cacheBlock) { // dvdFile.getFileSize() not inlined - u32 fileSize = dvdFile.getFileInfo().length; + u32 fileSize = dvdFile.getFileInfo()->length; u32 alignedSize = ALIGN_NEXT(fileSize, 0x20); buffer = JKRAllocFromHeap(mParentHeap, alignedSize, 0x20); if (buffer) { dvdFile.read(buffer, alignedSize, 0); cacheBlock = new (JKRHeap::getSystemHeap(), 0) - CCacheBlock(dvdFile.getFileID(), dvdFile.getFileInfo().length, buffer); + CCacheBlock(dvdFile.getFileID(), dvdFile.getFileInfo()->length, buffer); mCacheBlockList.append(&cacheBlock->mCacheBlockLink); } } else { @@ -273,7 +273,7 @@ u32 JKRFileCache::readResource(void* dst, u32 dstLength, const char* path) { loop: if (dvdFile.isAvailable()) { // dvdFile.getFileSize() not inlined - u32 fileSize = dvdFile.getFileInfo().length; + u32 fileSize = dvdFile.getFileInfo()->length; resourceSize = ALIGN_NEXT(fileSize, 0x20); dstLength = ALIGN_PREV(dstLength, 0x20); if (resourceSize > dstLength) { |
