// // SetupSmartBlockLayer::determineStartValues from 0x9dcc68 to 0x9dcd3c (212 bytes) // // 2 xrefs: // > SetupSmartBlockLayer::init @ 0x9dcdb4 // > @ 0x94f38 // // 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 SetupSmartBlockLayer::determineStartValues(SetupSmartBlockLayer *a1) { GJSmartTemplate *m_smartTemplate; // x0 bool m_allowRotation; // w3 bool m_allowFlipX; // w2 bool m_allowFlipY; // w1 GameManager *v6; // x0 GameManager *v7; // x0 SmartGameObject *m_gameObject; // x1 unsigned int v9; // w20 bool v10; // cf unsigned int v11; // w1 cocos2d::CCArray *m_gameObjects; // x0 m_smartTemplate = GameLevelManager::sharedState()->m_smartTemplate; if ( m_smartTemplate ) { m_allowRotation = m_smartTemplate->m_allowRotation; m_allowFlipX = m_smartTemplate->m_allowFlipX; m_allowFlipY = m_smartTemplate->m_allowFlipY; a1->m_ignoreCorners = m_smartTemplate->m_ignoreCorners; a1->m_allowRotation = m_allowRotation; a1->m_allowFlipX = m_allowFlipX; a1->m_allowFlipY = m_allowFlipY; } v6 = GameManager::sharedState(); a1->m_useNearby = GameManager::getGameVariable(v6, "0131"); v7 = GameManager::sharedState(); a1->m_dontDelete = GameManager::getGameVariable(v7, "0132"); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { a1->m_referenceOnly = m_gameObject->m_referenceOnly; } else { v9 = 0; a1->m_referenceOnly = 1; while ( 1 ) { v10 = v9 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects); v11 = v9++; if ( v10 ) break; while ( !*(_BYTE *)(cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v11) + 1331) ) { m_gameObjects = a1->m_gameObjects; a1->m_referenceOnly = 0; v10 = v9 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects); v11 = v9++; if ( v10 ) return; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source