// // PlayerObject::updatePlayerFrame from 0x1404fbfa0 to 0x1404fc1de (574 bytes) // // 8 xrefs: // > MenuGameLayer::resetPlayer @ 0x140471522 // > PlayerObject::toggleSwingMode @ 0x1404f9021 // > PlayerObject::toggleDartMode @ 0x1404f953c // > PlayerObject::toggleRollMode @ 0x1404f9959 // > PlayerObject::toggleRobotMode @ 0x1404f9d0b // > PlayerObject::toggleSpiderMode @ 0x1404fa0fd // > PlayerObject::togglePlayerScale @ 0x1404fee19 // > @ 0x14092a44c // // 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 11:33:22 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall PlayerObject::updatePlayerFrame(__int64 a1, int a2) { signed int v3; // r15d __int64 *v4; // rcx cocos2d::CCString *v5; // rax const char *CString; // rsi cocos2d::CCString *v7; // rax const char *v8; // rbp cocos2d::CCString *v9; // rax const char *v10; // r14 _QWORD *v11; // rcx __int64 v12; // rdi _QWORD *v13; // rbx __int64 v14; // rdx cocos2d::CCSpriteFrameCache *v15; // rax struct cocos2d::CCSpriteFrame *v16; // rax __int64 v17; // rdi __int64 v18; // rbx __int64 v19; // rdx __int64 v20; // rcx cocos2d::CCSpriteFrameCache *v21; // rax struct cocos2d::CCSpriteFrame *v22; // rax __int64 v23; // rdi __int64 v24; // rbx __int64 v25; // rdx __int64 v26; // rcx cocos2d::CCSpriteFrameCache *v27; // rax struct cocos2d::CCSpriteFrame *v28; // rax const struct cocos2d::CCSize *v29; // rax __int64 v30; // rdi __int64 v31; // rbx __int64 v32; // rax cocos2d::CCString *v33; // rax const char *v34; // rax size_t v35; // r8 __int128 v37; // [rsp+20h] [rbp-48h] BYREF __int64 v38; // [rsp+30h] [rbp-38h] __int64 v39; // [rsp+38h] [rbp-30h] float v40; // [rsp+70h] [rbp+8h] BYREF float v41; // [rsp+74h] [rbp+Ch] void *v42; // [rsp+80h] [rbp+18h] BYREF v3 = 485; if ( a2 < 485 ) v3 = a2; if ( v3 <= 0 ) v3 = 0; else *(_DWORD *)(a1 + 1568) = v3; v4 = (__int64 *)qword_14090BFD0; if ( !qword_14090BFD0 ) { v42 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v42); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = (__int64 *)qword_14090BFD0; } GameManager::loadIcon(v4, v3, 0, *(_DWORD *)(a1 + 3068)); v5 = cocos2d::CCString::createWithFormat("player_%02d_001.png", v3); CString = cocos2d::CCString::getCString(v5); v7 = cocos2d::CCString::createWithFormat("player_%02d_2_001.png", v3); v8 = cocos2d::CCString::getCString(v7); v9 = cocos2d::CCString::createWithFormat("player_%02d_glow_001.png", v3); v10 = cocos2d::CCString::getCString(v9); v11 = *(_QWORD **)(a1 + 1856); v12 = *v11; v13 = v11; v15 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v11, v14); v16 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v15, CString); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSpriteFrame *))(v12 + 1008))(v13, v16); v17 = **(_QWORD **)(a1 + 1864); v18 = *(_QWORD *)(a1 + 1864); v21 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v20, v19); v22 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v21, v8); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v17 + 1008))(v18, v22); v23 = **(_QWORD **)(a1 + 1880); v24 = *(_QWORD *)(a1 + 1880); v27 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v26, v25); v28 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v27, v10); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v23 + 1008))(v24, v28); v29 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1856) + 320LL))(*(_QWORD *)(a1 + 1856)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v40, v29); v30 = **(_QWORD **)(a1 + 1864); v31 = *(_QWORD *)(a1 + 1864); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v42, v40 * 0.5, v41 * 0.5); (*(void (__fastcall **)(__int64, __int64))(v30 + 184))(v31, v32); v33 = cocos2d::CCString::createWithFormat("player_%02d_extra_001.png", v3); v34 = cocos2d::CCString::getCString(v33); v37 = 0; v38 = 0; v39 = 0; v35 = -1; do ++v35; while ( v34[v35] ); sub_14003D230(&v37, v34, v35); return PlayerObject::updatePlayerSpriteExtra(a1, &v37); }
GD Web Decomp Icon

GD Web Decomp

Raw Source