// // EditorUI::toggleEnableRotate from 0x1401101e0 to 0x140110310 (304 bytes) // // 4 xrefs: // > EditorUI::init @ 0x1400e185c // > EditorUI::keyDown @ 0x140125be2 // > EditorUI::init @ 0x1400dff9b // > @ 0x1406c8ea4 // // 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 // // Hidden C++ exception states: #wind=2 void EditorUI::toggleEnableRotate(EditorUI *a1, cocos2d::CCObject *a2) { GameManager *v3; // rcx bool v4; // di GameManager *v5; // rcx ButtonSprite *v6; // rcx void *v7; // [rsp+30h] [rbp+8h] void *v8; // [rsp+30h] [rbp+8h] v3 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v7 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v7); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GameManager *)qword_1406C2ED8; } v4 = !GameManager::getGameVariable(v3, "0007"); v5 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v8 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v5 = (GameManager *)qword_1406C2ED8; } GameManager::setGameVariable(v5, "0007", v4); v6 = (ButtonSprite *)a1->m_rotateBtn->getNormalImage(a1->m_rotateBtn); if ( v4 ) { ButtonSprite::updateBGImage(v6, "GJ_button_02.png"); EditorUI::toggleSpecialEditButtons(a1); } else { ButtonSprite::updateBGImage(v6, "GJ_button_01.png"); a1->m_rotationTouchID = -1; if ( a1->m_rotationControl->isVisible(a1->m_rotationControl) ) { a1->m_rotationControl->setVisible(a1->m_rotationControl, 0); GJRotationControl::finishTouch(a1->m_rotationControl); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source