From fb9dd3cdee440e61d96ddd2efd0216a99df14997 Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Tue, 7 Jun 2022 13:03:27 -0700 Subject: JKRDvdRipper, JKRSolidHeap (#199) --- libs/JSystem/JKernel/JKRFileCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/JSystem/JKernel/JKRFileCache.cpp') 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) { -- cgit v1.2.3