// // PlayerObject::updatePlayerFrame from 0x100417b60 to 0x100417d88 (552 bytes) // // 14 xrefs: // > PlayerObject::switchedToMode @ 0x100412cc6 // > PlayerObject::togglePlayerScale @ 0x100412e7f // > PlayerObject::toggleFlyMode @ 0x1004162e7 // > PlayerObject::toggleBirdMode @ 0x100416dea // > PlayerObject::toggleSwingMode @ 0x1004174f0 // > PlayerObject::toggleSwingMode @ 0x1004177ce // > PlayerObject::toggleDartMode @ 0x100417f03 // > PlayerObject::toggleDartMode @ 0x100418242 // > PlayerObject::toggleRollMode @ 0x100418635 // > PlayerObject::toggleRobotMode @ 0x1004189a6 // > PlayerObject::toggleRobotMode @ 0x100418a15 // > PlayerObject::toggleSpiderMode @ 0x100418e16 // > PlayerObject::toggleSpiderMode @ 0x100418e85 // > MenuGameLayer::resetPlayer @ 0x1004fa8a3 // // 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 PlayerObject::updatePlayerFrame(PlayerObject *a1, int a2) { int v2; // eax int v3; // r14d GameManager *v4; // rax cocos2d::CCString *v5; // rax const char *CString; // r13 cocos2d::CCString *v7; // rax const char *v8; // r12 cocos2d::CCString *v9; // rax cocos2d::CCSprite *m_iconSprite; // r15 cocos2d::CCSpriteFrameCache *v11; // rax cocos2d::CCSpriteFrame *v12; // rax cocos2d::CCSprite *m_iconSpriteSecondary; // r15 cocos2d::CCSpriteFrameCache *v14; // rax cocos2d::CCSpriteFrame *v15; // rax cocos2d::CCSprite *m_iconGlow; // r15 cocos2d::CCSpriteFrameCache *v17; // rax cocos2d::CCSpriteFrame *v18; // rax _QWORD *v19; // rax cocos2d::CCSprite *v20; // r15 double v21; // xmm0_8 cocos2d::CCString *v22; // rax const char *v23; // r15 size_t v24; // rax size_t v25; // r14 char *v26; // r12 size_t v27; // r13 char v28; // [rsp+0h] [rbp-60h] char v29; // [rsp+0h] [rbp-60h] char v30; // [rsp+0h] [rbp-60h] char v31; // [rsp+0h] [rbp-60h] float v32; // [rsp+8h] [rbp-58h] BYREF const char *v33; // [rsp+10h] [rbp-50h] __int64 v34; // [rsp+18h] [rbp-48h] BYREF _QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF void *__p; // [rsp+30h] [rbp-30h] v2 = 485; if ( a2 < 485 ) v2 = a2; v3 = 0; if ( v2 > 0 ) v3 = v2; if ( a2 > 0 ) a1->m_maybeSavedPlayerFrame = v3; v4 = GameManager::sharedState(); GameManager::loadIcon(v4, v3, 0, a1->m_iconRequestID); v5 = (cocos2d::CCString *)sub_1007AB580("player_%02d_001.png", v28); CString = cocos2d::CCString::getCString(v5); v7 = (cocos2d::CCString *)sub_1007AB580("player_%02d_2_001.png", v29); v8 = cocos2d::CCString::getCString(v7); v9 = (cocos2d::CCString *)sub_1007AB580("player_%02d_glow_001.png", v30); v33 = cocos2d::CCString::getCString(v9); m_iconSprite = a1->m_iconSprite; v11 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, CString); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_iconSprite->setDisplayFrame)(m_iconSprite, v12); m_iconSpriteSecondary = a1->m_iconSpriteSecondary; v14 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, v8); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_iconSpriteSecondary->setDisplayFrame)( m_iconSpriteSecondary, v15); m_iconGlow = a1->m_iconGlow; v17 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v18 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v17, v33); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_iconGlow->setDisplayFrame)(m_iconGlow, v18); v19 = (_QWORD *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_iconSprite->getContentSize)(a1->m_iconSprite); sub_10028CFC0(&v34, v19); v20 = a1->m_iconSpriteSecondary; *(_QWORD *)&v21 = (unsigned int)v34; *(float *)&v21 = *(float *)&v34 * 0.5; sub_10028CBE0(&v32, *(float *)&v34 * 0.5, 0.5 * *((float *)&v34 + 1)); ((void (__fastcall *)(cocos2d::CCSprite *, float *))v20->setPosition)(v20, &v32); v22 = (cocos2d::CCString *)sub_1007AB580("player_%02d_extra_001.png", v31); v23 = cocos2d::CCString::getCString(v22); v24 = strlen(v23); if ( v24 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v21); v25 = v24; if ( v24 >= 0x17 ) { v27 = 26; if ( (v24 | 7) != 0x17 ) v27 = (v24 | 7) + 1; v26 = (char *)operator new(v27); __p = v26; __dst[0] = v27 + 1; __dst[1] = v25; goto LABEL_14; } LOBYTE(__dst[0]) = 2 * v24; v26 = (char *)__dst + 1; if ( v24 ) LABEL_14: memmove(v26, v23, v25); v26[v25] = 0; PlayerObject::updatePlayerSpriteExtra((__int64)a1, (__int64)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source