// // PlayLayer::toggleIgnoreDamage from 0x1000ace00 to 0x1000aceb5 (181 bytes) // // 1 xrefs: // > GameOptionsLayer::didToggle @ 0x1002b1f4f // // 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::toggleIgnoreDamage(PlayLayer *a1, bool a2) { cocos2d::CCLabelBMFont *m_statusLabel; // rdi bool m_isTestMode; // al const char *v5; // rsi a1->m_ignoreDamage = a2; if ( a2 ) a1->m_isIgnoreDamageEnabled = a2; a1->m_player1->m_maybeCanRunIntoBlocks = a2; a1->m_player2->m_maybeCanRunIntoBlocks = a2; m_statusLabel = a1->m_statusLabel; if ( m_statusLabel ) { m_isTestMode = 1; if ( !a1->m_isIgnoreDamageEnabled ) m_isTestMode = a1->m_isTestMode; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, bool))m_statusLabel->setVisible)(m_statusLabel, m_isTestMode); if ( a1->m_ignoreDamage ) { v5 = "Ignore Damage"; } else if ( a1->m_isIgnoreDamageEnabled ) { v5 = "Used Ignore Damage"; } else { if ( !a1->m_isTestMode ) return; v5 = "Testmode"; } ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_statusLabel->setString)(a1->m_statusLabel, v5); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source