// // PlayerObject::toggleVisibility from 0x1003f01c0 to 0x1003f035f (415 bytes) // // 8 xrefs: // > GJBaseGameLayer::processOptionsTrigger @ 0x10011a1b6 // > GJBaseGameLayer::processOptionsTrigger @ 0x10011a1df // > GJBaseGameLayer::togglePlayerVisibility @ 0x10011a384 // > GJBaseGameLayer::togglePlayerVisibility_1 @ 0x10012c943 // > GJBaseGameLayer::togglePlayerVisibility_1 @ 0x10012c960 // > PlayerObject::resetObject @ 0x1003ff18d // > PlayerObject::spawnFromPlayer @ 0x1004086d5 // > PlayerObject::loadFromCheckpoint @ 0x100409b76 // // 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 12:29:53 +0000 // __int64 __fastcall PlayerObject::toggleVisibility(__int64 a1, unsigned __int8 a2) { char v2; // r14 __int64 result; // rax __int64 v5; // rdi unsigned int v6; // r14d __int64 v7; // r15 __int64 v8; // rdi v2 = a2 ^ 1; if ( *(_BYTE *)(a1 + 1787) != (a2 ^ 1) ) { if ( a2 ) { *(_BYTE *)(a1 + 1787) = v2; result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 344LL))(a1, 1); if ( *(_BYTE *)(a1 + 2417) || *(_BYTE *)(a1 + 2418) || *(_BYTE *)(a1 + 2420) || *(_BYTE *)(a1 + 2428) == 1 ) { PlayerObject::resetStreak(a1); PlayerObject::activateStreak(a1); result = cocos2d::CCParticleSystem::resetSystem(*(_QWORD *)(a1 + 2168)); if ( *(_BYTE *)(a1 + 2420) == 1 ) { return sub_1003F05E0(a1); } else if ( *(_BYTE *)(a1 + 2417) == 1 && !*(_BYTE *)(a1 + 2832) ) { v8 = *(_QWORD *)(a1 + 1912); if ( v8 ) return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 344LL))(v8, 1); } } else if ( *(_BYTE *)(a1 + 2273) == 1 ) { PlayerObject::resetStreak(a1); return PlayerObject::activateStreak(a1); } } else { cocos2d::CCNode::stopActionByTag(a1, 11); *(_BYTE *)(a1 + 1787) = v2; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 344LL))(a1, 0); PlayerObject::deactivateStreak(a1, 1); v5 = *(_QWORD *)(a1 + 1912); if ( v5 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0); result = sub_1007FEF90(*(_QWORD *)(a1 + 1680)); if ( (_DWORD)result ) { v6 = 0; do { v7 = sub_1007FEFE0(*(_QWORD *)(a1 + 1680), v6); cocos2d::CCParticleSystem::resetSystem(v7); cocos2d::CCParticleSystem::stopSystem(v7); ++v6; result = sub_1007FEF90(*(_QWORD *)(a1 + 1680)); } while ( v6 < (unsigned int)result ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source