// // EditorUI::shouldDeleteObject from 0x688470 to 0x68856c (252 bytes) // // 5 xrefs: // > EditorUI::onDelete @ 0x6c0acc // > EditorUI::onDelete @ 0x6c0d80 // > EditorUI::onDeleteSelected @ 0x6c0e30 // > EditorUI::onDeleteSelected @ 0x6c0eac // > @ 0xa1700 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool EditorUI::shouldDeleteObject(EditorUI *a1, GameObject *a2) { GameManager *v3; // x0 int IntGameVariable; // w0 bool v5; // w1 bool result; // w0 GameManager *v7; // x0 GameObjectType v8; // w0 if ( !a2 || a2->m_objectID == 749 ) return 0; v3 = GameManager::sharedState(); IntGameVariable = GameManager::getIntGameVariable(v3, "0005"); v5 = 0; switch ( IntGameVariable ) { case 0: return 1; case 1: v5 = a2->getType(a2) == Decoration; goto LABEL_4; case 2: v8 = a2->getType(a2); v5 = 1; if ( v8 ) v5 = a2->getType(a2) == Slope; goto LABEL_4; case 3: v7 = GameManager::sharedState(); v5 = GameManager::getIntGameVariable(v7, "0006") == a2->m_objectID; goto LABEL_4; default: LABEL_4: result = v5; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source