// // EditorUI::showGridSizeAlert from 0x7c16e4 to 0x7c1878 (404 bytes) // // 2 xrefs: // > EditorUI::handleEditorAction @ 0xbd7a40 // > @ 0xfe218 // // This function is hookable on this platform (idp: arm, 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:54:06 +0000 // __int64 __fastcall EditorUI::showGridSizeAlert(EditorUI *this) { int v1; // w22 float v2; // s0 size_t v3; // x0 size_t v4; // x19 char *v5; // x3 unsigned __int64 v7; // x0 __int64 v8; // [xsp+0h] [xbp+0h] BYREF __int64 v9; // [xsp+40h] [xbp+40h] BYREF size_t v10; // [xsp+48h] [xbp+48h] void *v11; // [xsp+50h] [xbp+50h] char s[32]; // [xsp+58h] [xbp+58h] BYREF v1 = (int)this; if ( *((_BYTE *)this + 656) && (v2 = *((float *)this + 163), v2 > 0.0) ) { if ( v2 == (float)(int)v2 ) sprintf(s, "Gridsize: %d", (int)v2); else sprintf(s, "Gridsize: %.1f", v2); } else { strcpy(s, "Gridsize: Off"); } v9 = 0; v10 = 0; v11 = nullptr; v3 = strlen(s); v4 = v3; if ( v3 > 0xFFFFFFFFFFFFFFEFLL ) sub_62C43C(); if ( v3 > 0x16 ) { v7 = (v3 + 16) & 0xFFFFFFFFFFFFFFF0LL; v9 = v7 | 1; v5 = (char *)operator new(v7); v11 = v5; v10 = v4; } else { LOBYTE(v9) = 2 * v3; v5 = (char *)&v9 + 1; if ( !v3 ) goto LABEL_8; } v5 = (char *)memcpy(v5, s, v4); LABEL_8: v5[v4] = 0; EditorUI::showTextAlert(v1, (unsigned int)&v8 + 64); if ( (v9 & 1) != 0 ) operator delete(v11); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source