// // PlayerObject::toggleRobotMode from 0x1404f99d0 to 0x1404f9d73 (931 bytes) // // 21 xrefs: // > GJBaseGameLayer::setupLevelStart @ 0x140319651 // > GJBaseGameLayer::setupLevelStart @ 0x1403196fe // > GJBaseGameLayer::setupLevelStart @ 0x140319a72 // > GJBaseGameLayer::setupLevelStart @ 0x140319b00 // > GJBaseGameLayer::setupLevelStart @ 0x140319b17 // > GJBaseGameLayer::setupLevelStart @ 0x140319b69 // > GJBaseGameLayer::setupLevelStart @ 0x140319c16 // > sub_140319F40 @ 0x14031a027 // > sub_14031A030 @ 0x14031a084 // > sub_14031A120 @ 0x14031a167 // > GJBaseGameLayer::collisionCheckObjects @ 0x14031c29d // > GJBaseGameLayer::collisionCheckObjects @ 0x14031c570 // > GJBaseGameLayer::collisionCheckObjects @ 0x14031c7ba // > GJBaseGameLayer::collisionCheckObjects @ 0x14031c7cc // > GJBaseGameLayer::collisionCheckObjects @ 0x14031c836 // > MenuGameLayer::resetPlayer @ 0x14047122a // > MenuGameLayer::resetPlayer @ 0x1404714a5 // > PlayerObject::resetObject @ 0x1404f561b // > PlayerObject::switchedToMode @ 0x1404fa1b1 // > PlayerObject::copyAttributes @ 0x1404feb33 // > @ 0x14092a2c0 // // 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:21 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall PlayerObject::toggleRobotMode(__int64 a1, char a2, char a3) { __int64 *v6; // rcx __int64 v7; // rax __int64 v8; // rdx __int64 v9; // rcx int v10; // edx cocos2d::CCString *v11; // rax const char *CString; // rax size_t v13; // r8 __int64 v14; // rdx __int64 v15; // rcx void **v16; // rsi __int64 v17; // rdi __int64 v18; // rbx cocos2d::CCSpriteFrameCache *v19; // rax struct cocos2d::CCSpriteFrame *v20; // rax __int128 *v21; // rdx void *v22; // rcx __int64 v23; // rdx __int64 v24; // rbx cocos2d::CCNode *v25; // rcx cocos2d::CCNode *v26; // rcx __int64 v27; // rdx __int16 v28; // [rsp+30h] [rbp-29h] BYREF char v29; // [rsp+32h] [rbp-27h] void *v30; // [rsp+40h] [rbp-19h] __int128 v31; // [rsp+48h] [rbp-11h] BYREF __int64 v32; // [rsp+58h] [rbp-1h] __int64 v33; // [rsp+60h] [rbp+7h] void *Block[2]; // [rsp+68h] [rbp+Fh] BYREF __int64 v35; // [rsp+78h] [rbp+1Fh] unsigned __int64 v36; // [rsp+80h] [rbp+27h] if ( *(_BYTE *)(a1 + 2501) != a2 ) { *(_QWORD *)(a1 + 2016) = *(_QWORD *)(a1 + 2728); *(_BYTE *)(a1 + 2501) = a2; v6 = *(__int64 **)(a1 + 1368); v7 = *v6; v8 = *(_QWORD *)(a1 + 3072); if ( a2 ) { (*(void (__fastcall **)(__int64 *, __int64, __int64))(v7 + 456))(v6, v8, 2); PlayerObject::switchedToMode(a1, 27); *(_QWORD *)(a1 + 2104) = 0x3FF8000000000000LL; *(_WORD *)(a1 + 1840) = 0; *(_BYTE *)(a1 + 1648) = 0; *(_DWORD *)(a1 + 1832) = 0; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 352LL))(a1); v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v30 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v30); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v9 = qword_14090BFD0; } v10 = 68; if ( *(_DWORD *)(v9 + 808) - *(_DWORD *)(v9 + 812) < 68 ) v10 = *(_DWORD *)(v9 + 808) - *(_DWORD *)(v9 + 812); if ( v10 < 1 ) v10 = 1; v11 = cocos2d::CCString::createWithFormat("robot_%02d_01_001.png", v10); CString = cocos2d::CCString::getCString(v11); *(_OWORD *)Block = 0; v35 = 0; v36 = 0; v13 = -1; do ++v13; while ( CString[v13] ); sub_14003D230(Block, CString, v13); v16 = Block; if ( v36 > 0xF ) v16 = (void **)Block[0]; v17 = **(_QWORD **)(a1 + 1856); v18 = *(_QWORD *)(a1 + 1856); v19 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v15, v14); v20 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v19, (const char *)v16); (*(void (__fastcall **)(__int64, struct cocos2d::CCSpriteFrame *))(v17 + 1008))(v18, v20); if ( *(_BYTE *)(a1 + 2936) && *(double *)(a1 + 2816) == 0.0 ) { v31 = 0; v32 = 6; v33 = 15; strcpy((char *)&v31, "idle01"); v21 = &v31; } else { v21 = (__int128 *)sub_14003F4F0((__int64)&v31, a1 + 3032); } CCAnimatedSprite::runAnimation(*(_QWORD *)(a1 + 2216), (__int64)v21); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 1856) + 336LL))(*(_QWORD *)(a1 + 1856), 0); if ( !a3 ) { v28 = 13055; v29 = 50; PlayerObject::spawnPortalCircle(a1, (__int64)&v28); } PlayerObject::updatePlayerScale(a1); if ( v36 > 0xF ) { v22 = Block[0]; if ( v36 + 1 >= 0x1000 ) { v22 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v22 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v22); } } else { (*(void (__fastcall **)(__int64 *, __int64, _QWORD))(v7 + 536))(v6, v8, 0); LOBYTE(v23) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1856) + 336LL))(*(_QWORD *)(a1 + 1856), v23); v24 = *(_QWORD *)(*(_QWORD *)(a1 + 2216) + 664LL); SpriteAnimationManager::overridePrio(v24); v25 = *(cocos2d::CCNode **)(*(_QWORD *)(v24 + 320) + 688LL); if ( v25 ) cocos2d::CCNode::stopAllActions(v25); v26 = *(cocos2d::CCNode **)(*(_QWORD *)(v24 + 320) + 680LL); if ( v26 ) cocos2d::CCNode::stopAllActions(v26); if ( *(float *)(a1 + 2552) == 1.0 || !*(_BYTE *)(a1 + 2752) ) v27 = *(unsigned int *)(a1 + 1568); else v27 = 0; PlayerObject::updatePlayerFrame(a1, v27); } PlayerObject::updatePlayerGlow(a1); *(_WORD *)(a1 + 1840) = 0; *(_BYTE *)(a1 + 1648) = 0; *(_DWORD *)(a1 + 1832) = 0; if ( a2 ) { PlayerObject::updatePlayerArt(a1); PlayerObject::updateDashArt(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source