// // PlayerObject::copyAttributes from 0x43f8b0 to 0x43f9f0 (320 bytes) // // 2 xrefs: // > PlayerObject::spawnFromPlayer @ 0x43fa16 // > GJBaseGameLayer::toggleDualMode @ 0x5b91b0 // // 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 // int __fastcall PlayerObject::copyAttributes(int this, PlayerObject *a2) { void (__fastcall *v4)(int, int); // r9 int v5; // r0 __int64 YVelocity; // r0 int result; // r0 _BYTE v8[8]; // [sp+Ch] [bp+0h] BYREF *(_BYTE *)(this + 1601) = 1; *(_QWORD *)(this + 2128) = *((_QWORD *)a2 + 266); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (PlayerObject *)((char *)a2 + 2112)); cocos2d::CCPoint::operator=(this + 2112, v8); v4 = *(void (__fastcall **)(int, int))(*(_DWORD *)this + 92); v5 = (*(int (__fastcall **)(PlayerObject *))(*(_DWORD *)a2 + 96))(a2); v4(this, v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, (PlayerObject *)((char *)a2 + 2016)); cocos2d::CCPoint::operator=(this + 2016, v8); PlayerObject::flipGravity((unsigned __int8 *)this, *((unsigned __int8 *)a2 + 1959), 1); PlayerObject::doReversePlayer((PlayerObject *)this, *((unsigned __int8 *)a2 + 1962)); PlayerObject::toggleFlyMode(this, *((unsigned __int8 *)a2 + 1953), 0); PlayerObject::toggleBirdMode(this, *((unsigned __int8 *)a2 + 1954), 0); PlayerObject::toggleRollMode((char *)this, *((unsigned __int8 *)a2 + 1955), 0); PlayerObject::toggleDartMode(this, *((unsigned __int8 *)a2 + 1956), 0); PlayerObject::toggleRobotMode((char *)this, *((unsigned __int8 *)a2 + 1957), 0); PlayerObject::toggleSpiderMode((char *)this, *((unsigned __int8 *)a2 + 1958), 0); PlayerObject::toggleSwingMode(this, *((unsigned __int8 *)a2 + 1964), 0); PlayerObject::updateTimeMod((PlayerObject *)this, *((float *)a2 + 503), 0); PlayerObject::togglePlayerScale((int *)this, *((float *)a2 + 502) != 1.0, 0); YVelocity = PlayerObject::getYVelocity(a2); result = PlayerObject::setYVelocity(COERCE_DOUBLE((unsigned int)this | 0x3000000000LL), *(double *)&YVelocity, 48); *(_BYTE *)(this + 1601) = 0; *(_BYTE *)(this + 1901) = *((_BYTE *)a2 + 1901); *(_BYTE *)(this + 1902) = *((_BYTE *)a2 + 1902); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source