// // GJSmartBlockPreview::addTemplateGuide from 0x53be34 to 0x53bf8a (342 bytes) // // 2 xrefs: // > BrowseSmartKeyLayer::init @ 0x53f3d0 // > BrowseSmartKeyLayer::init @ 0x53f438 // // 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 // cocos2d::CCArray *GJSmartBlockPreview::addTemplateGuide(GJSmartBlockPreview *a1, SmartPrefabResult a2, float a3) { GJSmartPrefab *m_smartPrefab; // r4 stl::StringData::Internal *m_data; // r5 cocos2d::CCArray *v6; // r8 unsigned int i; // r5 int v8; // r4 int v9; // r4 int v10; // r0 unsigned int j; // r5 cocos2d::CCArray *result; // r0 SmartPrefabResult v13; // [sp+4h] [bp+0h] BYREF SmartPrefabResult v14; // [sp+20h] [bp+1Ch] BYREF m_smartPrefab = a2.m_smartPrefab; m_data = a2.m_binaryKey.m_data.m_data; SmartPrefabResult::SmartPrefabResult(&v13); sub_775D40(&v13.m_binaryKey, m_smartPrefab); sub_775D40(&v13.m_prefabKey, m_smartPrefab); SmartPrefabResult::SmartPrefabResult(&v14, &v13); v6 = GJSmartBlockPreview::addTemplateGuide((cocos2d::CCArray *)a1, &v14, 1.0); SmartPrefabResult::~SmartPrefabResult(&v14); if ( m_data == (stl::StringData::Internal *)((char *)&dword_0 + 1) ) { for ( i = 0; i < cocos2d::CCArray::count(v6); ++i ) { v8 = cocos2d::CCArray::objectAtIndex(v6, i); if ( (unsigned int)(*(int (__fastcall **)(int))(*(_DWORD *)v8 + 32))(v8) <= 2 ) (*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 448))(v8, 50); (*(void (__fastcall **)(int, cocos2d::ccColor3B *))(*(_DWORD *)v8 + 472))(v8, &stru_9AD2B7); } } else if ( m_data == (stl::StringData::Internal *)((char *)&dword_0 + 2) ) { for ( j = 0; j < cocos2d::CCArray::count(v6); ++j ) { v9 = cocos2d::CCArray::objectAtIndex(v6, j); v10 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 32))(v9); switch ( v10 ) { case 1: (*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v9 + 472))(v9, &word_9AD2B4); (*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 448))(v9, 200); break; case 2: (*(void (__fastcall **)(int, cocos2d::ccColor3B *))(*(_DWORD *)v9 + 472))(v9, &stru_9AD2B7); (*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 448))(v9, 100); break; case 0: (*(void (__fastcall **)(int, __int16 *))(*(_DWORD *)v9 + 472))(v9, &word_9AD2B4); (*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 448))(v9, 255); break; } } } SmartPrefabResult::~SmartPrefabResult(&v13); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source