// // GameObject::commonSetup from 0x643334 to 0x643474 (320 bytes) // // 3 xrefs: // > GameObject::init @ 0x6434a0 // > GameObject::initWithTexture @ 0x6439b8 // > @ 0x735f0 // // 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 // void GameObject::commonSetup(GameObject *a1) { _BOOL4 m_editorEnabled; // w0 GJSpriteColor *m_baseColor; // x4 __int64 v4; // x2 float width; // w6 float height; // w5 unsigned __int64 v7; // x2 void (__fastcall *setScaleX)(GameObject *__hidden, float); // x1 m_editorEnabled = GameManager::sharedState()->m_editorEnabled; a1->m_editorEnabled = m_editorEnabled; if ( !m_editorEnabled && GameManager::sharedState()->m_playLayer ) a1->m_goEffectManager = GameManager::sharedState()->m_playLayer->m_effectManager; GameObject::createSpriteColor(a1, 1); m_baseColor = a1->m_baseColor; v4 = qword_1242080; m_baseColor->m_defaultColorID = 1004; width = a1->m_obRect.size.width; m_baseColor->m_colorID = 0; height = a1->m_obRect.size.height; a1->m_defaultZOrder = 2; v7 = 214013 * v4 + 2531011; a1->m_enterType = -1; a1->m_exitType = -1; a1->m_unk3E8 = 1; qword_1242080 = v7; a1->m_opacityMod = 1.0; a1->m_width = width; a1->m_height = height; a1->m_spriteWidthScale = 1.0; a1->m_spriteHeightScale = 1.0; a1->m_varianceIndex = (int)(float)((float)((float)((v7 >> 16) & 0x7FFF) / 32767.0) * 1900.0); GameObject::assignUniqueID(a1); setScaleX = a1->setScaleX; a1->m_startScaleX = 1.0; a1->m_startScaleY = 1.0; a1->m_startRotationX = 0.0; a1->m_startRotationY = 0.0; setScaleX(a1, 1.0); a1->setScaleY(a1, 1.0); a1->m_isActivated = 0; a1->m_isDirty = 1; a1->m_isObjectRectDirty = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source