//
// EditorUI::adjustCustomGridSize from 0x481ac0 to 0x481b00 (64 bytes)
//
// 2 xrefs:
// > EditorUI::handleEditorAction @ 0x6f1c0a
// > EditorUI::handleEditorAction @ 0x6f1c16
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:22 +0000
//
int __fastcall EditorUI::adjustCustomGridSize(EditorUI *this, int a2)
{
EditorUI *v2; // r4
GameManager *v3; // r0
float v4; // r1
v2 = this;
if ( *((_BYTE *)this + 480) )
{
v4 = (float)a2 + *((float *)this + 119);
}
else
{
*((_BYTE *)this + 480) = 1;
v3 = (GameManager *)GameManager::sharedState(this);
GameManager::setGameVariable(v3, "0194", (_BYTE *)&dword_0 + 1);
this = v2;
v4 = 30.0;
}
return EditorUI::setCustomGridNodeSize(this, v4);
}