// // cocos2d::CCApplication::setResourceRootPath from 0x100329760 to 0x100329873 (275 bytes) // // 0 xrefs: // // 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 // void __fastcall cocos2d::CCApplication::setResourceRootPath(__int64 a1, const std::string *a2) { std::string *v2; // rbx unsigned int v3; // ecx cocos2d::CCFileUtils *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 *)(cocos2d::CCFileUtils *))v4->getWritablePath2)(v4); *(_OWORD *)__p = 0; v10 = 0; sub_10032A2E0(__p, *v5, v5[1], 0xAAAAAAAAAAAAAAABLL * ((__int64)(v5[1] - *v5) >> 3)); sub_100329890(__p, __p[0], v2); ((void (__fastcall *)(cocos2d::CCFileUtils *, void **))v4->getPathForFilename)(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