// // GJBaseGameLayer::toggleDualMode from 0x100281a5c to 0x100281ca8 (588 bytes) // // 6 xrefs: // > PlayLayer::loadFromCheckpoint @ 0x10014a400 // > GJBaseGameLayer::setupLevelStart @ 0x10028161c // > GJBaseGameLayer::collisionCheckObjects @ 0x100284098 // > GJBaseGameLayer::collisionCheckObjects @ 0x10028412c // > GJBaseGameLayer::resetLevelVariables @ 0x10029f634 // > LevelEditorLayer::onStopPlaytest @ 0x10040533c // // This function is hookable on this platform (idp: arm, 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:01:55 +0000 // __int64 __fastcall GJBaseGameLayer::toggleDualMode(__int64 result, __int64 a2, int a3, __int64 a4, char a5) { __int64 v8; // x19 __int64 v9; // x0 char v10; // w8 __int64 v11; // x0 int v12; // w9 _BYTE *v13; // x8 __int64 v14; // x8 __int64 v15; // x0 __int64 v16; // x19 if ( *(unsigned __int8 *)(result + 1010) == a3 ) return result; v8 = result; *(_BYTE *)(result + 1010) = a3; v9 = *(_QWORD *)(result + 13288); if ( a3 ) v10 = *(_BYTE *)(*(_QWORD *)(v8 + 3272) + 340LL); else v10 = 0; UILayer::updateDualMode(v9, v10 & 1); v11 = *(_QWORD *)(v8 + 3256); v12 = *(unsigned __int8 *)(v8 + 1010); *(_BYTE *)(v11 + 2617) = v12; v13 = *(_BYTE **)(v8 + 3264); v13[2617] = v12; if ( v12 == 1 ) { (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v13 + 1288LL))(v13); GJBaseGameLayer::spawnPlayer2(v8); if ( *(_BYTE *)(*(_QWORD *)(v8 + 3272) + 340LL) == 1 ) PlayerObject::releaseButton(*(_QWORD *)(v8 + 3264), 1); if ( (*(_BYTE *)(v8 + 12236) & 1) == 0 && (a5 & 1) == 0 ) { PlayerObject::spawnDualCircle(*(_QWORD *)(v8 + 3256)); PlayerObject::spawnDualCircle(*(_QWORD *)(v8 + 3264)); } if ( a2 ) *(_QWORD *)(v8 + 984) = a2; return GJBaseGameLayer::playerWillSwitchMode(v8, a4, a2); } if ( *(_BYTE *)(v11 + 2420) == 1 && (!a4 || *(_DWORD *)(a4 + 916) != *(_DWORD *)(v11 + 916)) ) PlayerObject::createFadeOutDartStreak(); if ( a4 && (*(_BYTE *)(v8 + 12236) & 1) == 0 ) { v14 = 3264; if ( *(_DWORD *)(a4 + 916) == *(_DWORD *)(*(_QWORD *)(v8 + 3264) + 916LL) ) v14 = 3256; GJBaseGameLayer::playExitDualEffect(v8, *(_QWORD *)(v8 + v14)); goto LABEL_25; } if ( a4 ) { LABEL_25: if ( *(_DWORD *)(a4 + 916) == *(_DWORD *)(*(_QWORD *)(v8 + 3264) + 916LL) ) PlayerObject::copyAttributes(*(_QWORD *)(v8 + 3256)); } GJBaseGameLayer::removePlayer2(v8); if ( (*(_BYTE *)(v8 + 12236) & 1) == 0 ) PlayerObject::spawnPortalCircle(*(_QWORD *)(v8 + 3256), 6618880, 50.0); *(_QWORD *)(v8 + 984) = 0; if ( a2 && *(_DWORD *)(a2 + 1248) == 1 ) GJBaseGameLayer::updateCameraMode(v8, a2, 0); v15 = sub_1002C6310(*(_QWORD *)(v8 + 3256)); GJBaseGameLayer::updateDualGround(v8, a4, v15, 0, 0.0); result = *(_QWORD *)(v8 + 3256); if ( *(_BYTE *)(result + 2420) == 1 && (!a4 || *(_DWORD *)(a4 + 916) != *(_DWORD *)(result + 916)) ) { PlayerObject::resetStreak(result); PlayerObject::placeStreakPoint_1(*(_QWORD *)(v8 + 3256)); result = *(_QWORD *)(v8 + 3264); if ( *(_BYTE *)(result + 2420) == 1 ) { v16 = *(_QWORD *)(v8 + 3256); (*(void (__fastcall **)(__int64))(*(_QWORD *)result + 368LL))(result); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v16 + 360LL))(v16); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source