// // SetupSmartBlockLayer::onCreate from 0x1004e15e0 to 0x1004e16e1 (257 bytes) // // 1 xrefs: // > SetupSmartBlockLayer::init @ 0x1004e08bb // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:31:18 +0000 // __int64 __fastcall SetupSmartBlockLayer::onCreate(__int64 a1, double a2) { __int64 v2; // rax __int64 v3; // r14 __int64 v4; // rsi __int64 v5; // rsi int v6; // eax _BOOL4 v7; // r15d __int64 v8; // r12 unsigned int RandomStartKey; // eax unsigned int v10; // eax __int64 v11; // rax __int64 ActiveSmartTemplate; // r15 __int64 v13; // rax v2 = sub_1007FE900(a1); v3 = v2; v4 = *(_QWORD *)(a1 + 688); if ( v4 ) { sub_1007FEBF0(v2, v4); } else { v5 = *(_QWORD *)(a1 + 696); if ( v5 ) sub_1007FEF70(v2, v5); } v6 = *(_DWORD *)(a1 + 680); if ( v6 < 0 ) { v11 = GameLevelManager::sharedState(a2); ActiveSmartTemplate = GameLevelManager::getActiveSmartTemplate(v11); v13 = GameManager::sharedState(); EditorUI::createSmartObjectsFromTemplate( *(_QWORD *)(*(_QWORD *)(v13 + 552) + 14248LL), ActiveSmartTemplate, v3, *(unsigned __int8 *)(a1 + 676), *(unsigned __int8 *)(a1 + 677), 0, 0); } else { if ( v6 == 9 ) *(_DWORD *)(a1 + 680) = 8; v7 = v6 == 9; v8 = *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 14248LL); RandomStartKey = EditorUI::getRandomStartKey(*(unsigned int *)(a1 + 680)); v10 = EditorUI::smartTypeForKey(RandomStartKey); EditorUI::createSmartObjectsFromType(v8, v10, v3, v7, *(unsigned __int8 *)(a1 + 677), *(float *)&a2); } return SetupSmartBlockLayer::onClose((_QWORD *)a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source