// // PlayerObject::toggleRollMode from 0x43f0ec to 0x43f1ca (222 bytes) // // 4 xrefs: // > PlayerObject::switchedToMode @ 0x43e6ec // > PlayerObject::copyAttributes @ 0x43f950 // > MenuGameLayer::resetPlayer @ 0x4925fe // > GJBaseGameLayer::switchToRollMode @ 0x58eef2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:48:25 +0000 // char *__fastcall PlayerObject::toggleRollMode(char *this, int a2, int a3) { int v3; // r4 const char *v6; // r1 float v7; // s14 int v8; // r0 int v9; // r1 int v10; // r3 PlayerObject *v11; // r0 int v12; // r1 int v13; // r1 int v14; // [sp+4h] [bp-4h] HIBYTE(v14) = HIBYTE(a2); v3 = (int)this; if ( (unsigned __int8)*(this + 1955) != a2 ) { *((_QWORD *)this + 199) = *((_QWORD *)this + 266); *(this + 1955) = a2; if ( a2 ) this = (char *)PlayerObject::switchedToMode(this, 16); v6 = (const char *)*(unsigned __int8 *)(v3 + 1955); v7 = *(float *)(v3 + 2008); if ( *(_BYTE *)(v3 + 1955) ) { if ( v7 != 1.0 && *(_BYTE *)(v3 + 2152) ) { v11 = (PlayerObject *)v3; v12 = 0; } else { v8 = GameManager::sharedState((GameManager *)this); v9 = *(_DWORD *)(v8 + 540); v10 = *(_DWORD *)(v8 + 544); v11 = (PlayerObject *)v3; v12 = v9 - v10; } PlayerObject::updatePlayerRollFrame(v11, v12); if ( !a3 ) { LOWORD(v14) = 13055; BYTE2(v14) = 50; PlayerObject::spawnPortalCircle(v3, v14, (CCCircleWave *)0x42480000); } } else { if ( v7 == 1.0 || !*(_BYTE *)(v3 + 2152) ) v6 = *(const char **)(v3 + 1320); PlayerObject::updatePlayerFrame((PlayerObject *)v3, v6); if ( *(_BYTE *)(v3 + 1959) ) v13 = 1127481344; else v13 = 0; (*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 180))(v3, v13); } this = PlayerObject::stopRotation((PlayerObject *)v3, 1, 11); if ( a2 ) return (char *)PlayerObject::modeDidChange((PlayerObject *)v3); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source