// // SetupSmartBlockLayer::determineStartValues from 0x1004e6b30 to 0x1004e6c25 (245 bytes) // // 1 xrefs: // > SetupSmartBlockLayer::init @ 0x1004e5df8 // // 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 SetupSmartBlockLayer::determineStartValues(SetupSmartBlockLayer *a1) { GJSmartTemplate *m_smartTemplate; // rax GameManager *v2; // rax GameManager *v3; // rax SmartGameObject *m_gameObject; // rax unsigned int v5; // r14d m_smartTemplate = GameLevelManager::sharedState()->m_smartTemplate; if ( m_smartTemplate ) { a1->m_allowRotation = m_smartTemplate->m_allowRotation; a1->m_allowFlipX = m_smartTemplate->m_allowFlipX; a1->m_allowFlipY = m_smartTemplate->m_allowFlipY; a1->m_ignoreCorners = m_smartTemplate->m_ignoreCorners; } v2 = GameManager::sharedState(); a1->m_useNearby = GameManager::getGameVariable(v2, "0131"); v3 = GameManager::sharedState(); a1->m_dontDelete = GameManager::getGameVariable(v3, "0132"); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { a1->m_referenceOnly = m_gameObject->m_referenceOnly; } else { a1->m_referenceOnly = 1; if ( (unsigned int)sub_100720070(a1->m_gameObjects) ) { v5 = 0; do { if ( !*(_BYTE *)(sub_1007200C0(a1->m_gameObjects, v5) + 1347) ) a1->m_referenceOnly = 0; ++v5; } while ( v5 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source