// // cocos2d::CCFileUtils::addSearchPath from 0xd79680 to 0xd7984c (460 bytes) // // 3 xrefs: // > @ 0x45ec8 // > @ 0x152d948 // > @ 0x152de08 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:08:05 +0000 // __int64 __fastcall cocos2d::CCFileUtils::addSearchPath(cocos2d::CCFileUtils *this, char *a2) { size_t v3; // x0 char *v4; // x1 size_t v5; // x2 char *v6; // x1 unsigned __int64 v7; // x0 unsigned __int64 v8; // x0 __int64 v11[2]; // [xsp+40h] [xbp+40h] BYREF void *v12; // [xsp+50h] [xbp+50h] unsigned __int64 v13; // [xsp+58h] [xbp+58h] BYREF unsigned __int64 v14; // [xsp+60h] [xbp+60h] void *v15; // [xsp+68h] [xbp+68h] unsigned __int64 v16[2]; // [xsp+70h] [xbp+70h] BYREF char *v17; // [xsp+80h] [xbp+80h] v11[0] = 0; v11[1] = 0; v12 = nullptr; v13 = 0; v14 = 0; v15 = nullptr; v3 = strlen(a2); std::string::__init((__int64 *)&v13, a2, v3); if ( !(*(unsigned __int8 (__fastcall **)(cocos2d::CCFileUtils *, unsigned __int64 *))(*(_QWORD *)this + 168LL))( this, &v13) && v11 != (__int64 *)((char *)this + 64) ) { if ( (*((_BYTE *)this + 64) & 1) != 0 ) { v4 = *((char **)this + 10); v5 = *((_QWORD *)this + 9); } else { v4 = (char *)this + 65; v5 = *((_BYTE *)this + 64) >> 1; } std::string::assign(v11, v4, v5); } std::operator+((__int64)v11, (__int64)&v13, v16); if ( (v13 & 1) != 0 ) { *(_BYTE *)v15 = 0; v14 = 0; } else { LOWORD(v13) = 0; } std::string::reserve((__int64 *)&v13, 0); v13 = v16[0]; v6 = v17; v14 = v16[1]; v15 = v17; if ( (v16[0] & 1) != 0 ) { v7 = v14; if ( !v14 ) goto LABEL_10; } else { LODWORD(v7) = (int)LOBYTE(v16[0]) >> 1; if ( !(_DWORD)v7 ) goto LABEL_10; v7 = (int)v7; v6 = (char *)&v13 + 1; } if ( v6[v7 - 1] != 47 ) std::string::append((__int64)&v13, (char *)&word_11BA098); LABEL_10: v8 = *((_QWORD *)this + 6); if ( v8 == *((_QWORD *)this + 7) ) { std::vector::__push_back_slow_path((__int64 *)this + 5, &v13); } else { if ( v8 ) { std::string::basic_string(v8, &v13); v8 = *((_QWORD *)this + 6); } *((_QWORD *)this + 6) = v8 + 24; } if ( (v13 & 1) != 0 ) operator delete(v15); if ( (v11[0] & 1) != 0 ) operator delete(v12); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source