// // LevelEditorLayer::updateLevelSaveInfo from 0x470874 to 0x470ae2 (622 bytes) // // 2 xrefs: // > LevelEditorLayer::prepareSaveData @ 0x470b7a // > LevelEditorLayer::saveLevel @ 0x47285c // // 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:04 +0000 // int *__fastcall LevelEditorLayer::updateLevelSaveInfo(LevelEditorLayer *this) { int v2; // r4 float v3; // r0 int v4; // r5 float v5; // r0 bool v6; // r2 int v7; // r5 float v8; // s13 int v9; // r9 int v10; // s15 const cocos2d::CCPoint *v11; // r0 int v12; // r1 int v13; // r2 int v14; // r1 int v15; // r2 int *result; // r0 int v17; // r3 int v18; // r3 bool v19[8]; // [sp+10h] [bp+0h] BYREF int v20; // [sp+18h] [bp+8h] BYREF int v21; // [sp+1Ch] [bp+Ch] int v22; // [sp+20h] [bp+10h] v2 = *((_DWORD *)this + 352); *(_BYTE *)(v2 + 824) = *(_BYTE *)(*((_DWORD *)this + 521) + 280); v3 = COERCE_FLOAT(LevelEditorLayer::getLastObjectX(this)); v4 = *((_DWORD *)this + 2970); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v3 + 340.0, 0.0); v5 = COERCE_FLOAT(DrawGridLayer::timeForPos(v4, (const cocos2d::CCPoint *)v19, 0, 0, 0, 0, 0, 0)); v7 = *(_DWORD *)(v2 + 1000); v8 = v5; if ( v7 > 0 && (float)((float)v7 / 240.0) > v5 ) v8 = (float)v7 / 240.0; *(_DWORD *)(v2 + 724) = GJGameLevel::getLengthKey( (GJGameLevel *)(int)v8, *(unsigned __int8 *)(*((_DWORD *)this + 521) + 281), v6); v9 = *((_DWORD *)this + 2967) - *((_DWORD *)this + 2968); *(_DWORD *)(v2 + 456) = v9; v10 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0); *(_DWORD *)(v2 + 452) = v10; *(_DWORD *)(v2 + 448) = v10 + v9; *(_DWORD *)(v2 + 788) = *((_DWORD *)this + 2947) - *((_DWORD *)this + 2948); *(_BYTE *)(v2 + 592) = *((_BYTE *)this + 11710); if ( v9 > 40000 ) { if ( v9 > 80000 ) goto LABEL_8; } else { *(_BYTE *)(v2 + 984) = 0; } *(_BYTE *)(v2 + 985) = 0; LABEL_8: v11 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 96))(*((_DWORD *)this + 609)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v11); cocos2d::CCPoint::operator=(v2 + 928, v19); *(_DWORD *)(v2 + 936) = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 609) + 84))(*((_DWORD *)this + 609)); LevelEditorLayer::getLockedLayers((LevelEditorLayer *)&v20, (int)this); std::string::operator=((unsigned __int8 *)(v2 + 372), (unsigned __int8 *)&v20); std::string::~string((int)&v20); LevelEditorLayer::getSavedEditorPositions((LevelEditorLayer *)&v20, (int)this); std::string::operator=((unsigned __int8 *)(v2 + 384), (unsigned __int8 *)&v20); std::string::~string((int)&v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, (LevelEditorLayer *)((char *)this + 12028)); cocos2d::CCPoint::operator=(v2 + 396, v19); v19[0] = 0; LevelEditorLayer::getSongIDs((LevelEditorLayer *)&v20, (bool *)this, v19); if ( (*(_BYTE *)(v2 + 1008) & 1) != 0 ) { **(_BYTE **)(v2 + 1016) = 0; *(_DWORD *)(v2 + 1012) = 0; } else { *(_BYTE *)(v2 + 1009) = 0; *(_BYTE *)(v2 + 1008) = 0; } std::string::reserve((int *)(v2 + 1008), 0); v12 = v21; v13 = v22; *(_DWORD *)(v2 + 1008) = v20; *(_DWORD *)(v2 + 1012) = v12; *(_DWORD *)(v2 + 1016) = v13; v20 = 0; v21 = 0; v22 = 0; std::string::~string((int)&v20); LevelEditorLayer::getSFXIDs((LevelEditorLayer *)&v20, (int)this); if ( (*(_BYTE *)(v2 + 1020) & 1) != 0 ) { **(_BYTE **)(v2 + 1028) = 0; *(_DWORD *)(v2 + 1024) = 0; } else { *(_BYTE *)(v2 + 1021) = 0; *(_BYTE *)(v2 + 1020) = 0; } std::string::reserve((int *)(v2 + 1020), 0); v14 = v21; v15 = v22; *(_DWORD *)(v2 + 1020) = v20; *(_DWORD *)(v2 + 1024) = v14; *(_DWORD *)(v2 + 1028) = v15; v20 = 0; v21 = 0; v22 = 0; result = (int *)std::string::~string((int)&v20); v17 = *(unsigned __int8 *)(v2 + 1020); if ( (v17 & 1) != 0 ) v18 = *(_DWORD *)(v2 + 1024); else v18 = v17 >> 1; if ( !v18 && !v19[0] ) return std::string::assign((int *)(v2 + 1008), (char *)&unk_B6B226); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source