// // GJPathSprite::init from 0x100302d70 to 0x100302e74 (260 bytes) // // 5 xrefs: // > GJPathsLayer::init @ 0x1002fe866 // > GJPathSprite::create @ 0x1002fe96b // > GJPathPage::init @ 0x1002ff7e6 // > GJPathPage::playUnlockAnimation @ 0x100300fda // > GJPathPage::unlockAnimationStep3 @ 0x100302117 // // 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 GJPathSprite::init(GJPathSprite *a1, int a2) { double v2; // xmm0_8 int v3; // ebx GJPathSprite *v4; // r14 cocos2d::CCString *v5; // rax const char *CString; // r12 size_t v7; // rax size_t v8; // r15 char *v9; // r13 const char *v10; // rsi size_t v11; // rbx bool result; // al bool v13; // bl char v14; // [rsp+0h] [rbp-50h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v3 = a2; v4 = a1; v5 = (cocos2d::CCString *)sub_1007AB580("pathIcon_%02d_001.png", v14); CString = cocos2d::CCString::getCString(v5); v7 = strlen(CString); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v8 = v7; if ( v7 >= 0x17 ) { v11 = 26; if ( (v7 | 7) != 0x17 ) v11 = (v7 | 7) + 1; v9 = (char *)operator new(v11); __p = v9; __dst[0] = v11 + 1; v3 = a2; v4 = a1; __dst[1] = v8; LABEL_9: memmove(v9, CString, v8); v9[v8] = 0; if ( (__dst[0] & 1) != 0 ) goto LABEL_5; goto LABEL_10; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) goto LABEL_9; BYTE1(__dst[0]) = 0; if ( (__dst[0] & 1) != 0 ) { LABEL_5: v10 = (const char *)__p; goto LABEL_11; } LABEL_10: v10 = (char *)__dst + 1; LABEL_11: result = cocos2d::CCSprite::initWithSpriteFrameName(v4, v10); if ( result ) v4->m_pathNumber = v3; if ( (__dst[0] & 1) != 0 ) { v13 = result; operator delete(__p); return v13; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source