// // EditorUI::onDeleteAll from 0x1401b07f0 to 0x1401b0988 (408 bytes) // // 4 xrefs: // > EditorUI::FLAlert_Clicked @ 0x1401b1098 // > @ 0x1408a147c // > @ 0x1408a14b0 // > @ 0x140919ea4 // // 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:27:55 +0000 // __int64 __fastcall EditorUI::onDeleteAll(__int64 a1) { __int64 v2; // r8 int v3; // ecx int v4; // eax int v5; // ecx __int64 v6; // rdi __int64 v7; // rcx unsigned int v8; // eax struct cocos2d::CCArray *v9; // rbx __int64 v10; // rdx unsigned int *v11; // rsi __int64 v12; // rax _QWORD *v13; // rsi _QWORD *i; // rbp __int64 v15; // rbx int v16; // eax __int64 result; // rax EditorUI::deselectAll(); *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 15416LL) += *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 14928LL) - *(_DWORD *)(*(_QWORD *)(a1 + 1512) + 14932LL); v2 = *(_QWORD *)(a1 + 1512); v3 = *(_DWORD *)(v2 + 15504); if ( v3 >= 0 ) { v4 = *(_DWORD *)(v2 + 15440) - v3; v5 = 0; if ( v4 > 1 ) { do { if ( v5 >= 7 ) break; v4 = (unsigned int)v4 >> 1; ++v5; } while ( (unsigned int)v4 > 1 ); } ++*(_DWORD *)(v2 + 4LL * v5 + 15472); } *(_DWORD *)(v2 + 15504) = *(_DWORD *)(v2 + 15440); v6 = *(_QWORD *)(a1 + 1512); v7 = *(_QWORD *)(v6 + 14904); *(_BYTE *)(v6 + 15512) = 1; if ( v7 ) EditorUI::deselectAll(); v8 = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v6 + 3536)); v9 = cocos2d::CCArray::createWithCapacity(v8); cocos2d::CCArray::addObjectsFromArray(v9, *(struct cocos2d::CCArray **)(v6 + 3536)); if ( v9 ) { v11 = *((unsigned int **)v9 + 7); v12 = *v11; if ( (_DWORD)v12 ) { v13 = *((_QWORD **)v11 + 2); for ( i = &v13[v12 - 1]; v13 <= i; *(_BYTE *)(v6 + 15666) = 1 ) { v15 = *v13; if ( !*v13 ) break; LOBYTE(v10) = 1; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v15 + 1160LL))(*v13, v10); GJBaseGameLayer::removeObjectFromSection(v6, v15); LevelEditorLayer::removeSpecial(v6, v15); ++v13; } } } cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(v6 + 14920)); cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(v6 + 14912)); *(_DWORD *)(v6 + 14936) = 0; v16 = rand(); *(_BYTE *)(v6 + 15666) = 1; *(_BYTE *)(v6 + 15512) = 0; result = (unsigned int)(int)(float)((float)((float)v16 / 32767.0) * 1000.0); *(_DWORD *)(v6 + 14932) = result; *(_DWORD *)(v6 + 14928) = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source