// // SetupSmartBlockLayer::determineStartValues from 0x53d7dc to 0x53d866 (138 bytes) // // 1 xrefs: // > SetupSmartBlockLayer::init @ 0x53d8c8 // // 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; // r3 bool m_allowFlipY; // r2 bool m_ignoreCorners; // r3 GameManager *v5; // r0 GameManager *v6; // r0 bool GameVariable; // r0 SmartGameObject *m_gameObject; // r5 m_smartTemplate = GameLevelManager::sharedState()->m_smartTemplate; if ( m_smartTemplate ) { a1->m_allowRotation = m_smartTemplate->m_allowRotation; a1->m_allowFlipX = m_smartTemplate->m_allowFlipX; m_allowFlipY = m_smartTemplate->m_allowFlipY; m_ignoreCorners = m_smartTemplate->m_ignoreCorners; a1->m_allowFlipY = m_allowFlipY; a1->m_ignoreCorners = m_ignoreCorners; } v5 = GameManager::sharedState(); a1->m_useNearby = GameManager::getGameVariable(v5, "0131"); v6 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v6, "0132"); m_gameObject = a1->m_gameObject; a1->m_dontDelete = GameVariable; if ( m_gameObject ) { a1->m_referenceOnly = m_gameObject->m_referenceOnly; } else { a1->m_referenceOnly = 1; while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) ) { if ( !*(_BYTE *)(cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject) + 1159) ) a1->m_referenceOnly = 0; m_gameObject = (SmartGameObject *)((char *)m_gameObject + 1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source