// // EditorUI::onCreate from 0x4877c8 to 0x48789a (210 bytes) // // 1 xrefs: // > EditorUI::clickOnPosition @ 0x48c77a // // 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:26 +0000 // int __fastcall EditorUI::onCreate(EditorUI *this) { int result; // r0 unsigned int locked; // r1 _DWORD *v4; // r3 int v5; // r2 int v6; // r1 GameObject *Object; // r1 result = *((_DWORD *)this + 223); if ( result ) { locked = LevelEditorLayer::lockedLayerForObject( *((LevelEditorLayer **)this + 236), *(__int16 *)(*((_DWORD *)this + 236) + 11826), 0); if ( locked != -1 ) { EditorUI::showLockedLayerAlert(this, locked); return 1; } v4 = *((_DWORD **)this + 236); v5 = v4[2967] - v4[2968]; v6 = *((_DWORD *)this + 223); if ( v5 <= 79999 ) { if ( v5 <= 39999 || v6 == 31 ) goto LABEL_12; } else { if ( v6 == 31 ) goto LABEL_12; if ( !*(_BYTE *)(v4[352] + 985) ) { EditorUI::showMaxError((int)this); return 1; } } if ( !*(_BYTE *)(v4[352] + 984) ) { EditorUI::showMaxBasicError((int)this); return 1; } LABEL_12: if ( v6 == 1329 && v4[2947] - v4[2948] > 2 ) { EditorUI::showMaxCoinError((int)this, (const char *)&stru_2E0C.st_value); } else { if ( *((_DWORD *)this + 249) || cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 167)) ) EditorUI::createUndoSelectObject((cocos2d::CCArray ***)this, 1); Object = EditorUI::onCreateObject(this, *((char **)this + 223)); if ( Object ) EditorUI::playSoundForCreatedObject(this, Object); } return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source