// // PlayerObject::updatePlayerFrame from 0x7565c8 to 0x7567e4 (540 bytes) // // 12 xrefs: // > PlayerObject::toggleRobotMode @ 0x759230 // > PlayerObject::toggleRobotMode @ 0x75949c // > PlayerObject::toggleSpiderMode @ 0x7596ec // > PlayerObject::toggleSpiderMode @ 0x759914 // > PlayerObject::toggleSwingMode @ 0x75a06c // > PlayerObject::toggleDartMode @ 0x75a19c // > PlayerObject::toggleDartMode @ 0x75a370 // > PlayerObject::toggleRollMode @ 0x75a3e0 // > PlayerObject::toggleRollMode @ 0x75a4d4 // > PlayerObject::togglePlayerScale @ 0x75d13c // > MenuGameLayer::resetPlayer @ 0x7da5ec // > @ 0x1012a8 // // 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 12:52:57 +0000 // __int64 __fastcall PlayerObject::updatePlayerFrame(PlayerObject *this, int a2) { GameManager *v3; // x0 unsigned int v4; // w19 __int64 **v5; // x0 cocos2d::CCString *v6; // x0 const char *CString; // x28 cocos2d::CCString *v8; // x0 const char *v9; // x27 cocos2d::CCString *v10; // x0 __int64 v11; // x0 cocos2d::CCSpriteFrameCache **v12; // x24 const char *v13; // x26 void (__fastcall *v14)(cocos2d::CCSpriteFrameCache **, __int64); // x25 cocos2d::CCSpriteFrameCache *v15; // x0 __int64 v16; // x0 cocos2d::CCSpriteFrameCache **v17; // x24 void (__fastcall *v18)(cocos2d::CCSpriteFrameCache **, __int64); // x25 cocos2d::CCSpriteFrameCache *v19; // x0 __int64 v20; // x0 cocos2d::CCSpriteFrameCache **v21; // x24 void (__fastcall *v22)(cocos2d::CCSpriteFrameCache **, __int64); // x25 cocos2d::CCSpriteFrameCache *v23; // x0 __int64 v24; // x0 const cocos2d::CCSize *v25; // x0 __int64 v26; // x24 void (__fastcall *v27)(__int64, _BYTE *); // x21 cocos2d::CCString *v28; // x0 const char *v29; // x0 size_t v30; // x0 char *v32; // [xsp+68h] [xbp+68h] float v33[2]; // [xsp+70h] [xbp+70h] BYREF _BYTE v34[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v35[2]; // [xsp+80h] [xbp+80h] BYREF void *v36; // [xsp+90h] [xbp+90h] v3 = (GameManager *)_stack_chk_guard; if ( a2 < 0 ) { v4 = 0; } else { if ( a2 > 485 ) v4 = 485; else v4 = a2; if ( v4 ) *((_DWORD *)this + 390) = v4; } v5 = (__int64 **)GameManager::sharedState(v3); GameManager::loadIcon(v5, v4, 0, *((_DWORD *)this + 743)); v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_001.png", (const char *)v4); CString = (const char *)cocos2d::CCString::getCString(v6); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_2_001.png", (const char *)v4); v9 = (const char *)cocos2d::CCString::getCString(v8); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_glow_001.png", (const char *)v4); v11 = cocos2d::CCString::getCString(v10); v12 = *((cocos2d::CCSpriteFrameCache ***)this + 225); v13 = (const char *)v11; v14 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v12 + 145); v15 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v12); v16 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v15, CString); v14(v12, v16); v17 = *((cocos2d::CCSpriteFrameCache ***)this + 226); v18 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v17 + 145); v19 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v17); v20 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, v9); v18(v17, v20); v21 = *((cocos2d::CCSpriteFrameCache ***)this + 228); v22 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v21 + 145); v23 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v21); v24 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v23, v13); v22(v21, v24); v25 = (const cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 225) + 328LL))(*((_QWORD *)this + 225)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v33, v25); v26 = *((_QWORD *)this + 226); v27 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v26 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v34, v33[0] * 0.5, v33[1] * 0.5); v27(v26, v34); v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"player_%02d_extra_001.png", (const char *)v4); v29 = (const char *)cocos2d::CCString::getCString(v28); v35[0] = 0; v32 = (char *)v29; v35[1] = 0; v36 = nullptr; v30 = strlen(v29); std::string::__init(v35, v32, v30); PlayerObject::updatePlayerSpriteExtra((__int64)this, (__int64)v35); if ( (v35[0] & 1) != 0 ) operator delete(v36); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source