// // PlayerObject::activateStreak from 0x1003f04c0 to 0x1003f05d2 (274 bytes) // // 15 xrefs: // > PlayerObject::toggleVisibility @ 0x1003f0231 // > PlayerObject::toggleVisibility @ 0x1003f034f // > sub_1003F06C0 @ 0x1003f0710 // > sub_1003F06C0 @ 0x1003f0746 // > PlayerObject::flipGravity @ 0x1003f0ac6 // > PlayerObject::resetObject @ 0x1003ff5ef // > PlayerObject::resetObject @ 0x1003ff61c // > PlayerObject::resetObject @ 0x1003ff63a // > PlayerObject::ringJump @ 0x100401be9 // > PlayerObject::ringJump @ 0x100401fcd // > PlayerObject::toggleFlyMode @ 0x1004034d2 // > PlayerObject::toggleBirdMode @ 0x100403f98 // > PlayerObject::toggleSwingMode @ 0x10040453f // > PlayerObject::toggleDartMode @ 0x100404f19 // > PlayerObject::propellPlayer @ 0x100407d7e // // 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 // char __fastcall PlayerObject::activateStreak(__int64 a1) { __int64 v1; // rax __int64 v2; // rax __int64 v3; // rax const std::string::value_type *v4; // r14 __int64 v5; // rax _QWORD *v6; // r14 _QWORD *v7; // rax _QWORD v9[4]; // [rsp+0h] [rbp-20h] BYREF v9[0] = v1; if ( *(_BYTE *)(a1 + 1972) != 1 || (v2 = GameManager::sharedState(), LOBYTE(v3) = GJBaseGameLayer::isFlipping(*(_QWORD *)(v2 + 544)), !(_BYTE)v3) ) { v3 = GameManager::sharedState(); if ( !*(_BYTE *)(v3 + 706) && !*(_BYTE *)(a1 + 1787) ) { v4 = "0196"; if ( *(_BYTE *)(a1 + 2420) ) v4 = "0197"; v5 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getGameVariable(v5, v4) ) { LOBYTE(v3) = PlayerObject::deactivateStreak(a1, 1); } else { *(_BYTE *)(a1 + 2352) = 1; LOBYTE(v3) = cocos2d::CCMotionStreak::resumeStroke(*(_QWORD *)(a1 + 1904)); if ( *(_BYTE *)(a1 + 2420) == 1 ) { v6 = (_QWORD *)(*(_QWORD *)(a1 + 1920) + 424LL); v7 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1); sub_1002782D0(v9, v7); sub_100278300(v6, v9); cocos2d::CCNode::stopAllActions(*(_QWORD *)(a1 + 1920)); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1920) + 912LL))(*(_QWORD *)(a1 + 1920), 255); LOBYTE(v3) = HardStreak::resumeStroke(*(_QWORD *)(a1 + 1920)); } } } } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source