summaryrefslogtreecommitdiff
path: root/src/JSystem/JKernel/JKRFileCache.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-02-10 11:20:42 -0800
committerGitHub <noreply@github.com>2025-02-10 21:20:42 +0200
commit2453c0e3333157090e839eeab768d19b6a2b0ba1 (patch)
treef51d7bcca7a8227966fc05ee7ef25cd508075a4c /src/JSystem/JKernel/JKRFileCache.cpp
parent6c24ff192933300faf555f1411e03432c751afe5 (diff)
copy dolsdk2004 to tp / b_bh + e_mb done (#2299)
* move dolsdk2004 over * cleanup some temp work * finish and cleanup gf * b_bh done * d_a_e_mb done
Diffstat (limited to 'src/JSystem/JKernel/JKRFileCache.cpp')
-rw-r--r--src/JSystem/JKernel/JKRFileCache.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/JSystem/JKernel/JKRFileCache.cpp b/src/JSystem/JKernel/JKRFileCache.cpp
index 9bbcf891d2..549f4c0335 100644
--- a/src/JSystem/JKernel/JKRFileCache.cpp
+++ b/src/JSystem/JKernel/JKRFileCache.cpp
@@ -272,8 +272,8 @@ u32 JKRFileCache::getResSize(const void* resource) const {
/* 802D52A0-802D531C 2CFBE0 007C+00 1/0 0/0 0/0 .text countFile__12JKRFileCacheCFPCc */
u32 JKRFileCache::countFile(const char* path) const {
- DVDDirectory dir;
- DVDDirectoryEntry dirEntry;
+ DVDDir dir;
+ DVDDirEntry dirEntry;
u32 count = 0;
char* name = getDvdPathName(path);
@@ -334,14 +334,14 @@ JKRFileCache::CCacheBlock* JKRFileCache::findCacheBlock(u32 fileID) const {
/* 802D5410-802D551C 2CFD50 010C+00 2/2 0/0 0/0 .text findFile__12JKRFileCacheCFPcPCc */
bool JKRFileCache::findFile(char* path, const char* fileName) const {
- DVDDirectory dir;
- DVDDirectoryEntry dirEntry;
+ DVDDir dir;
+ DVDDirEntry dirEntry;
bool result = false;
u32 pathLength = strlen(path);
if (DVDOpenDir(path, &dir)) {
while (DVDReadDir(&dir, &dirEntry)) {
- if (dirEntry.is_directory) {
+ if (dirEntry.isDir) {
char* endOfPath = path + pathLength;
*endOfPath = '/';
strcpy(path + pathLength + 1, dirEntry.name);
@@ -428,4 +428,4 @@ u32 JKRFileCache::readFsResource(void* dst, u32 dstLength, const char* path) {
*/
u32 JKRFileCache::readNameResource(void* dst, u32 dstLength, u32 type, const char* path) {
return readResource(dst, dstLength, type, path);
-} \ No newline at end of file
+}