// // GameObject::commonSetup from 0x1005a2060 to 0x1005a21ec (396 bytes) // // 7 xrefs: // > TextGameObject::create @ 0x1005a1e58 // > EnhancedGameObject::create @ 0x1005a1f6b // > GameObject::createWithFrame @ 0x1005a1ff1 // > GameObject::init @ 0x1005a2049 // > GameObject::initWithTexture @ 0x1005a2207 // > EnhancedGameObject::init @ 0x1005cbd89 // > TextGameObject::init @ 0x1005d17b7 // // 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 __fastcall GameObject::commonSetup(GameObject *a1) { bool m_editorEnabled; // al _QWORD *p_m_colorID; // rax int v3; // eax 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; p_m_colorID = &a1->m_baseColor->m_colorID; if ( !p_m_colorID ) { p_m_colorID = operator new(0x28u); *p_m_colorID = 0; p_m_colorID[1] = 0x3F8000003F800000LL; *((_OWORD *)p_m_colorID + 1) = xmmword_1009A2C90; *((_DWORD *)p_m_colorID + 8) = -65536; *((_BYTE *)p_m_colorID + 36) = -1; a1->m_baseColor = (GJSpriteColor *)p_m_colorID; } *p_m_colorID = 0x3EC00000000LL; a1->m_opacityMod = 1.0; a1->m_defaultZOrder = 2; *(_DWORD *)&a1->m_enterType = -1; a1->m_unk3E8 = 1; qword_1009A2CA8 = 214013 * qword_1009A2CA8 + 2531011; a1->m_varianceIndex = (int)(float)((float)((float)(WORD1(qword_1009A2CA8) & 0x7FFF) / 32767.0) * 1900.0); *(cocos2d::CCSize *)&a1->m_width = a1->m_obRect.size; *(_QWORD *)&a1->m_spriteWidthScale = 0x3F8000003F800000LL; v3 = dword_10099E600; a1->m_uniqueID = dword_10099E600; a1->m_unknown5 = v3; dword_10099E600 = v3 + 1; *(_OWORD *)&a1->m_startRotationX = xmmword_100815DE0; ((void (__fastcall *)(GameObject *, float))a1->setScaleX)(a1, 1.0); ((void (__fastcall *)(GameObject *, float))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