// // LevelEditorLayer::updateEditor from 0x4730f0 to 0x4733e8 (760 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:49:06 +0000 // int __fastcall LevelEditorLayer::updateEditor(LevelEditorLayer *this, float a2) { char *v4; // r5 int v5; // r0 int v6; // r1 int v7; // r0 _BOOL4 v8; // r3 double v9; // r0 cocos2d::CCDirector *v10; // r0 double v11; // d9 int v12; // r7 void (__fastcall *v13)(int, _BOOL4); // r8 _BOOL4 v14; // r1 int v15; // r7 void (__fastcall *v16)(int, _BOOL4); // r8 _BOOL4 v17; // r1 int v18; // r0 int v19; // r3 DeathMarkerLayer *v20; // r0 DeathMarkerLayer *v21; // r0 int v22; // r0 int v23; // r0 _BYTE v25[8]; // [sp+4h] [bp-28h] BYREF _BYTE v26[8]; // [sp+Ch] [bp-20h] BYREF float v27[4]; // [sp+14h] [bp-18h] BYREF if ( *((_DWORD *)this + 2964) ) { v4 = (char *)this + 12104; ++*((_DWORD *)this + 3034); v5 = cocos2d::CCDirector::sharedDirector(this); v6 = *(_DWORD *)((*(int (__fastcall **)(int))(*(_DWORD *)v5 + 80))(v5) + 96); v7 = *((_DWORD *)this + 3024); if ( v7 != -1 && *((_DWORD *)this + 357) != 1 ) *((_DWORD *)v4 + 9) = *((_DWORD *)v4 + 9) - v7 + v6; *((_DWORD *)this + 3024) = v6; } if ( *((_BYTE *)this + 12278) ) { *((_BYTE *)this + 12278) = 0; ++*((_DWORD *)this + 3070); } v8 = *((_DWORD *)this + 357) == 1; *((_BYTE *)this + 10880) = v8; if ( v8 ) { *((float *)this + 3033) = *((float *)this + 3033) + a2; (*(void (__fastcall **)(LevelEditorLayer *, _DWORD))(*(_DWORD *)this + 20))(this, LODWORD(a2)); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 2970) + 20))(*((_DWORD *)this + 2970), LODWORD(a2)); LABEL_31: LODWORD(v9) = LevelEditorLayer::updateGridLayer(this); return LODWORD(v9); } GJBaseGameLayer::tryResumeAudio(this); if ( *((_BYTE *)this + 12276) ) { LODWORD(v9) = GJBaseGameLayer::getModifiedDelta(this, a2); a2 = v9; } else { LODWORD(v9) = 0; *((_QWORD *)this + 1359) = 0; } if ( a2 > 0.0 ) { *((double *)this + 98) = *((double *)this + 98) + a2; v10 = (cocos2d::CCDirector *)clock_gettime(0, (struct timespec *)v27); v11 = (double)SLODWORD(v27[0]) + (double)SLODWORD(v27[1]) / 1000000000.0; *(float *)&v11 = v11 - *(double *)(cocos2d::CCDirector::sharedDirector(v10) + 120); if ( *(float *)&v11 < 10.0 ) *((double *)this + 1511) = *((double *)this + 1511) + a2; GJBaseGameLayer::updateBGArtSpeed(this, 0.1, 0.1); LevelEditorLayer::updateGameObjects(this); (*(void (__fastcall **)(LevelEditorLayer *, _DWORD))(*(_DWORD *)this + 596))(this, LODWORD(a2)); LevelEditorLayer::updateGridLayerParent(this); v12 = *((_DWORD *)this + 607); v13 = *(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v12 + 172); v14 = (unsigned int)(*(int (__fastcall **)(int))(*(_DWORD *)v12 + 248))(v12) > 1 || (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 610) + 248))(*((_DWORD *)this + 610)) != 0; v13(v12, v14); v15 = *((_DWORD *)this + 608); v16 = *(void (__fastcall **)(int, _BOOL4))(*(_DWORD *)v15 + 172); v17 = (unsigned int)(*(int (__fastcall **)(int))(*(_DWORD *)v15 + 248))(v15) > 1 || (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 611) + 248))(*((_DWORD *)this + 611)) != 0; v16(v15, v17); GJBaseGameLayer::updateGradientLayers(this); GJBaseGameLayer::updateExtraGameLayers(this); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 615) + 172))(*((_DWORD *)this + 615), 0); v18 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 84))(*((_DWORD *)this + 609)); v19 = *((_DWORD *)this + 353); *((_DWORD *)this + 82) = v18; if ( v19 || *((_DWORD *)this + 354) ) { GJBaseGameLayer::syncDeathMarkerFlip(this); sub_45E7D8((cocos2d::CCDirector *)v27, *((_DWORD *)this + 609)); v20 = *((DeathMarkerLayer **)this + 353); if ( v20 ) DeathMarkerLayer::updateVisibility(v20, (const cocos2d::CCRect *)v27); v21 = *((DeathMarkerLayer **)this + 354); if ( v21 ) DeathMarkerLayer::updateVisibility(v21, (const cocos2d::CCRect *)v27); } v22 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 96))(*((_DWORD *)this + 609)); cocos2d::CCPoint::operator-(v25, v22, &prevGamelayerPos); cocos2d::CCPoint::operator*(v27, v25, 1.0 / *((float *)this + 82)); cocos2d::CCPoint::operator-(v26, (char *)this + 996, v27); if ( *((float *)this + 82) != *((float *)this + 164) ) cocos2d::CCPoint::operator=(v26, (char *)this + 996); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, (const cocos2d::CCPoint *)v26); GJBaseGameLayer::updateCameraBGArt(this, v27, *((_DWORD *)this + 82)); *((_DWORD *)this + 164) = *((_DWORD *)this + 82); cocos2d::CCPoint::operator=((char *)this + 996, v26); v23 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 96))(*((_DWORD *)this + 609)); cocos2d::CCPoint::operator=(&prevGamelayerPos, v23); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 2970) + 20))(*((_DWORD *)this + 2970), LODWORD(a2)); LevelEditorLayer::checkAutoSave(this, a2); goto LABEL_31; } return LODWORD(v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source