// // EditorUI::handleAction from 0x10060b700 to 0x10060b8a4 (420 bytes) // // 2 xrefs: // > sub_10060D940 @ 0x10060d94c // > @ 0x100ab5140 // // 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:34:33 +0000 // char __fastcall EditorUI::handleAction(__int64 a1, __int64 a2, int a3, double a4) { unsigned __int8 v4; // r14 __int64 v5; // rax __int64 v6; // rax __int64 v8; // rdi int v9; // eax v4 = a3; if ( a3 ) { if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 352LL))(*(_QWORD *)(a1 + 784)) && (unsigned __int8)sub_100643A20(*(_QWORD *)(a1 + 784)) || (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 352LL))(*(_QWORD *)(a1 + 760)) && (unsigned __int8)sub_100641110(*(_QWORD *)(a1 + 760)) ) { return 1; } v5 = cocos2d::CCDirector::sharedDirector(); if ( *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5) + 133) == 1 ) { switch ( (int)a2 ) { case 20001: case 20002: case 20031: case 20032: case 20033: case 20034: case 20041: case 20042: case 20043: case 20044: case 20045: case 20046: case 20047: case 20048: case 20063: case 20064: case 20065: case 20066: case 20095: case 20096: case 20097: case 20098: case 20099: case 20100: case 20101: case 20102: case 20103: case 20104: case 20105: case 20106: case 20107: case 20108: case 20109: case 20110: case 20114: case 20115: case 20174: case 20175: case 20176: case 20177: case 20178: case 20179: case 20180: case 20181: break; default: return 1; } } } switch ( (int)a2 ) { case 20067: if ( v4 ) EditorUI::onPause(a1, 0); return 1; case 20068: if ( v4 ) { if ( *(_DWORD *)(*(_QWORD *)(a1 + 1440) + 1972LL) ) { EditorUI::onStopPlaytest(a1); } else if ( *(_DWORD *)(a1 + 704) == -1 ) { EditorUI::onPlaytest(a1, 0); } } return 1; case 20069: *(_BYTE *)(a1 + 688) = v4; break; case 20087: if ( v4 ) { v8 = *(_QWORD *)(a1 + 1440); v9 = *(_DWORD *)(v8 + 1972); if ( v9 == 2 ) { LevelEditorLayer::onResumePlaytest(v8, a2); } else if ( v9 == 1 ) { LevelEditorLayer::onPausePlaytest((_QWORD *)v8, a2); } } return 1; default: break; } v6 = *(_QWORD *)(a1 + 1440); if ( *(_DWORD *)(v6 + 1972) == 1 ) return (*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD, double))(**(_QWORD **)(v6 + 13288) + 1312LL))( *(_QWORD *)(v6 + 13288), (unsigned int)a2, v4, a4); else return EditorUI::handleEditorAction(a1, (unsigned int)a2, v4); }