// // LevelEditorLayer::undoLastAction from 0x1403f3020 to 0x1403f309d (125 bytes) // // 4 xrefs: // > EditorUI::undoLastAction @ 0x1401b3be2 // > EditorUI::handleEditorAction @ 0x1401c2313 // > LevelEditorLayer::handleAction @ 0x1403f2f54 // > @ 0x140925448 // // 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 11:31:48 +0000 // void __fastcall LevelEditorLayer::undoLastAction(__int64 a1) { __int64 v2; // rax int v3; // ecx int v4; // eax int v5; // ecx v2 = cocos2d::CCDirector::sharedDirector(a1); if ( !*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 176LL))(v2) + 157) ) { ++*(_DWORD *)(a1 + 15428); v3 = *(_DWORD *)(a1 + 15504); if ( v3 >= 0 ) { v4 = *(_DWORD *)(a1 + 15440) - v3; v5 = 0; if ( v4 > 1 ) { do { if ( v5 >= 7 ) break; v4 = (unsigned int)v4 >> 1; ++v5; } while ( (unsigned int)v4 > 1 ); } ++*(_DWORD *)(a1 + 4LL * v5 + 15472); } *(_DWORD *)(a1 + 15504) = *(_DWORD *)(a1 + 15440); } LevelEditorLayer::handleAction(a1, 1, *(cocos2d::CCArray **)(a1 + 14912)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source