// // PlatformToolbox::doesFileExist from 0x1004c4240 to 0x1004c432f (239 bytes) // // 1 xrefs: // > GJMoreGamesLayer::getMoreGamesList @ 0x100795386 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall PlatformToolbox::doesFileExist(__int64 a1) { __int64 v1; // rdx NSString *v2; // r14 NSFileManager *v3; // rbx NSArray *v4; // rax id v5; // rax id v6; // r15 NSBundle *v7; // rax NSString *v8; // rax NSString *v9; // rax unsigned __int8 v10; // cl bool result; // al if ( (*(_BYTE *)a1 & 1) != 0 ) v1 = *(_QWORD *)(a1 + 16); else v1 = a1 + 1; v2 = +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", v1); v3 = +[NSFileManager defaultManager](&OBJC_CLASS___NSFileManager, "defaultManager"); v4 = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, 1u, 1); v5 = -[NSArray objectAtIndex:](v4, "objectAtIndex:", 0); v6 = objc_msgSend(v5, "stringByAppendingPathComponent:", v2); v7 = +[NSBundle mainBundle](&OBJC_CLASS___NSBundle, "mainBundle"); v8 = -[NSBundle resourcePath](v7, "resourcePath"); v9 = -[NSString stringByAppendingPathComponent:](v8, "stringByAppendingPathComponent:", v2); v10 = -[NSFileManager fileExistsAtPath:](v3, "fileExistsAtPath:", v9); result = 1; if ( !v10 ) return -[NSFileManager fileExistsAtPath:](v3, "fileExistsAtPath:", v6); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source