// // cocos2d::CCApplication::setResourceRootPath from 0x100314e70 to 0x100314f83 (275 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 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 12:28:40 +0000 // void __fastcall cocos2d::CCApplication::setResourceRootPath(__int64 a1, const std::string *a2) { std::string *v2; // rbx unsigned int v3; // ecx __int64 v4; // r14 _QWORD *v5; // rax void **v6; // rbx void **v7; // r14 void *v8; // rdi void *__p[2]; // [rsp+0h] [rbp-30h] BYREF __int64 v10; // [rsp+10h] [rbp-20h] v2 = (std::string *)(a1 + 8); std::string::operator=((std::string *)(a1 + 8), a2); v3 = *(unsigned __int8 *)(a1 + 8); if ( (v3 & 1) == 0 ) { if ( *(_BYTE *)(a1 + 9 + (v3 >> 1) - 1) == 47 ) goto LABEL_8; goto LABEL_7; } if ( *(_BYTE *)(*(_QWORD *)(a1 + 24) + *(_QWORD *)(a1 + 16) - 1LL) != 47 ) LABEL_7: std::string::push_back(v2, 47); LABEL_8: v4 = cocos2d::CCFileUtils::sharedFileUtils(); v5 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 136LL))(v4); *(_OWORD *)__p = 0; v10 = 0; sub_1003159F0(__p, *v5, v5[1], 0xAAAAAAAAAAAAAAABLL * ((__int64)(v5[1] - *v5) >> 3)); sub_100314FA0(__p, __p[0], v2); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v4 + 112LL))(v4, __p); v6 = (void **)__p[0]; if ( __p[0] ) { v7 = (void **)__p[1]; v8 = __p[0]; if ( __p[1] != __p[0] ) { do { if ( (*(_BYTE *)(v7 - 3) & 1) != 0 ) operator delete(*(v7 - 1)); v7 -= 3; } while ( v7 != v6 ); v8 = __p[0]; } __p[1] = v6; operator delete(v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source