// // cocos2d::CCFileUtilsIOS::getFullPathForDirectoryAndFilename from 0x10023651c to 0x10023664c (304 bytes) // // 1 xrefs: // > @ 0x1007c7d90 // // 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 // _QWORD *__usercall cocos2d::CCFileUtilsIOS::getFullPathForDirectoryAndFilename@( _BYTE *a1@, char *a2@, __int64 a3@) { _BYTE *v6; // x8 void *v7; // x2 _QWORD *result; // x0 NSBundle *v9; // x22 char *v10; // x2 NSString *v11; // x21 _BYTE *v12; // x2 NSString *v13; // x0 char *v14; // x1 if ( (char)a1[23] >= 0 ) v6 = a1; else v6 = *(_BYTE **)a1; if ( *v6 != 47 ) { v9 = +[NSBundle mainBundle](&OBJC_CLASS___NSBundle, "mainBundle"); if ( a2[23] >= 0 ) v10 = a2; else v10 = *(char **)a2; v11 = +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", v10); if ( (char)a1[23] >= 0 ) v12 = a1; else v12 = *(_BYTE **)a1; v13 = -[NSBundle pathForResource:ofType:inDirectory:]( v9, "pathForResource:ofType:inDirectory:", v11, 0, +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", v12)); if ( v13 ) { v14 = -[NSString UTF8String](v13, "UTF8String"); return sub_100009900((_QWORD *)a3, v14); } LABEL_20: v14 = ""; return sub_100009900((_QWORD *)a3, v14); } sub_100151EF8((const void **)a1, (const void **)a2, a3); if ( *(char *)(a3 + 23) >= 0 ) v7 = (void *)a3; else v7 = *(void **)a3; result = objc_msgSend( (id)qword_10086CDB0, "fileExistsAtPath:", +[NSString stringWithUTF8String:](&OBJC_CLASS___NSString, "stringWithUTF8String:", v7)); if ( ((unsigned __int8)result & 1) == 0 ) { if ( *(char *)(a3 + 23) < 0 ) operator delete(*(void **)a3); goto LABEL_20; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source