// // PlayLayer::updateDebugDrawSettings from 0x1000acd20 to 0x1000acdf4 (212 bytes) // // 3 xrefs: // > PlayLayer::init @ 0x1000ac795 // > GameOptionsLayer::didToggle @ 0x1002b2055 // > UILayer::handleKeypress @ 0x1004c92dd // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall PlayLayer::updateDebugDrawSettings(PlayLayer *a1) { GameManager *v1; // rax GameManager *v2; // rax GameManager *v3; // rax bool GameVariable; // al unsigned __int8 m_playerDied; // r14 v1 = GameManager::sharedState(); a1->m_isDebugDrawEnabled = GameManager::getGameVariable(v1, "0166"); v2 = GameManager::sharedState(); a1->m_disablePlayerHitbox = GameManager::getGameVariable(v2, "0171"); v3 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v3, "0179"); a1->m_hitboxesOnDeath = GameVariable; if ( !a1->m_isDebugDrawEnabled ) { if ( !GameVariable ) { m_playerDied = 0; goto LABEL_7; } LABEL_5: m_playerDied = a1->m_playerDied; goto LABEL_7; } m_playerDied = a1->m_isPracticeMode; if ( !(m_playerDied & 1 | !GameVariable) ) goto LABEL_5; LABEL_7: if ( m_playerDied != ((unsigned __int8 (__fastcall *)(cocos2d::CCDrawNode *))a1->m_debugDrawNode->isVisible)(a1->m_debugDrawNode) ) { cocos2d::CCDrawNode::clear(a1->m_debugDrawNode); ((void (__fastcall *)(cocos2d::CCDrawNode *, _QWORD))a1->m_debugDrawNode->setVisible)( a1->m_debugDrawNode, m_playerDied); if ( m_playerDied ) ((void (__fastcall *)(PlayLayer *))a1->updateDebugDraw)(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source