// // DrawGridLayer::loadTimeMarkers from 0x36f794 to 0x36f914 (384 bytes) // // 3 xrefs: // > LevelEditorLayer::levelSettingsUpdated @ 0x36f962 // > LevelEditorLayer::levelSettingsUpdated @ 0x36f976 // > DrawGridLayer::updateTimeMarkers @ 0x36fa02 // // 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 DrawGridLayer::loadTimeMarkers(int a1, _DWORD *a2) { cocos2d::CCObject *v4; // r0 int v5; // r3 unsigned int v6; // r1 cocos2d::CCObject *v7; // r0 unsigned int v8; // r6 float v9; // s17 double v10; // d9 float v11; // s16 cocos2d::CCArray *v12; // r7 float v13; // s18 const char *v14; // r1 cocos2d::CCObject *v15; // r0 cocos2d::CCArray *v16; // r7 const char *v17; // r1 cocos2d::CCObject *v18; // r0 cocos2d::CCPoint v19; // [sp+0h] [bp-18h] BYREF _DWORD *v20; // [sp+8h] [bp-10h] BYREF int v21; // [sp+Ch] [bp-Ch] int v22; // [sp+10h] [bp-8h] sub_775D40(a1 + 384, a2); v4 = *(cocos2d::CCObject **)(a1 + 392); if ( v4 ) { cocos2d::CCObject::release(v4); *(_DWORD *)(a1 + 392) = 0; } if ( *(_DWORD *)(*(_DWORD *)(a1 + 384) - 12) ) { switch ( *(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a1 + 380) + 2240) + 272) ) { case 1: v5 = *(_DWORD *)(a1 + 420); break; case 2: v5 = *(_DWORD *)(a1 + 428); break; case 3: v5 = *(_DWORD *)(a1 + 432); break; case 4: v5 = *(_DWORD *)(a1 + 436); break; default: v5 = *(_DWORD *)(a1 + 424); break; } *(_DWORD *)(a1 + 416) = v5; v20 = nullptr; v21 = 0; v22 = 0; sub_36F6EC(a2, "~", (int)&v20); v7 = (cocos2d::CCObject *)cocos2d::CCArray::createWithCapacity((cocos2d::CCArray *)((v21 - (int)v20) >> 2), v6); *(_DWORD *)(a1 + 392) = v7; cocos2d::CCObject::retain(v7); v8 = 0; v9 = *(float *)(*(_DWORD *)(*(_DWORD *)(a1 + 380) + 2240) + 284); while ( 1 ) { if ( v8 >= (v21 - (int)v20) >> 2 ) { std::vector::~vector((void **)&v20); return; } v10 = atof((const char *)v20[v8]); v11 = atof((const char *)v20[v8 + 1]); if ( v11 == 0.0 ) { v11 = 0.8; } else if ( v11 < 0.8 ) { goto LABEL_17; } v12 = *(cocos2d::CCArray **)(a1 + 392); v13 = v10; DrawGridLayer::posForTime(&v19, (DrawGridLayer *)a1, v13 - v9); v15 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v14, v19.x); cocos2d::CCArray::addObject(v12, v15); v16 = *(cocos2d::CCArray **)(a1 + 392); v18 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v17, v11); cocos2d::CCArray::addObject(v16, v18); LABEL_17: v8 += 2; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source