// // LevelEditorLayer::updateLevelSaveInfo from 0x7a48f0 to 0x7a4c40 (848 bytes) // // 3 xrefs: // > LevelEditorLayer::prepareSaveData @ 0x7a4d38 // > LevelEditorLayer::saveLevel @ 0x7a7c4c // > @ 0x9e1d0 // // This function is hookable on this platform (idp: arm, 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:53:41 +0000 // __int64 __fastcall LevelEditorLayer::updateLevelSaveInfo(LevelEditorLayer *this) { __int64 v2; // x19 __int64 v3; // x1 float LastObjectX; // s0 __int64 v5; // x23 bool v6; // w2 float v7; // s0 int v8; // w1 int v9; // w24 float v10; // s0 const cocos2d::CCPoint *v11; // x0 long double v12; // q0 __int64 *v13; // x0 __int64 *v14; // x0 size_t v15; // x3 size_t v16; // x1 __int64 v17; // x1 bool v19[8]; // [xsp+48h] [xbp+48h] BYREF __int64 v20; // [xsp+50h] [xbp+50h] BYREF size_t v21; // [xsp+58h] [xbp+58h] void *v22; // [xsp+60h] [xbp+60h] __int64 v23; // [xsp+68h] [xbp+68h] v2 = *((_QWORD *)this + 242); v3 = _stack_chk_guard; *(_BYTE *)(v2 + 1000) = *(_BYTE *)(*((_QWORD *)this + 409) + 340LL); v23 = v3; LastObjectX = LevelEditorLayer::getLastObjectX(this); v5 = *((_QWORD *)this + 1786); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, LastObjectX + 340.0, 0.0); DrawGridLayer::timeForPos(v5, (const cocos2d::CCPoint *)v19, 0, 0, 0, 0, 0, 0); v8 = *(_DWORD *)(v2 + 1232); if ( v8 > 0 && v7 < (float)((float)v8 / 240.0) ) v7 = (float)v8 / 240.0; *(_DWORD *)(v2 + 900) = GJGameLevel::getLengthKey( (GJGameLevel *)(unsigned int)(int)v7, *(unsigned __int8 *)(*((_QWORD *)this + 409) + 341LL), v6); v9 = *((_DWORD *)this + 3568) - *((_DWORD *)this + 3569); *(_DWORD *)(v2 + 628) = v9; v10 = (float)((float)rand() * 4.6566e-10) * 1000.0; *(_DWORD *)(v2 + 624) = (int)v10; *(_DWORD *)(v2 + 620) = v9 + (int)v10; *(_DWORD *)(v2 + 964) = *((_DWORD *)this + 3539) - *((_DWORD *)this + 3540); *(_BYTE *)(v2 + 768) = *((_BYTE *)this + 14018); if ( v9 <= 40000 ) { *(_BYTE *)(v2 + 1200) = 0; LABEL_6: *(_BYTE *)(v2 + 1201) = 0; goto LABEL_7; } if ( v9 <= 80000 ) goto LABEL_6; LABEL_7: v11 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 490) + 192LL))(*((_QWORD *)this + 490)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, v11); *(__n128 *)&v12 = cocos2d::CCPoint::operator=(v2 + 1116, v19); *(float *)(v2 + 1124) = (*(float (__fastcall **)(_QWORD, long double))(**((_QWORD **)this + 490) + 168LL))( *((_QWORD *)this + 490), v12); LevelEditorLayer::getLockedLayers(this, &v20); v13 = (__int64 *)(v2 + 520); if ( (__int64 *)(v2 + 520) != &v20 ) { if ( (v20 & 1) != 0 ) std::string::assign(v13, v22, v21); else std::string::assign(v13, (char *)&v20 + 1, (unsigned __int8)v20 >> 1); } if ( (v20 & 1) != 0 ) operator delete(v22); LevelEditorLayer::getSavedEditorPositions(this, &v20); v14 = (__int64 *)(v2 + 544); if ( (__int64 *)(v2 + 544) != &v20 ) { if ( (v20 & 1) != 0 ) std::string::assign(v14, v22, v21); else std::string::assign(v14, (char *)&v20 + 1, (unsigned __int8)v20 >> 1); } if ( (v20 & 1) != 0 ) operator delete(v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, (LevelEditorLayer *)((char *)this + 14584)); cocos2d::CCPoint::operator=(v2 + 568, v19); v19[0] = 0; LevelEditorLayer::getSongIDs(this, v19, &v20); if ( (*(_BYTE *)(v2 + 1240) & 1) != 0 ) { **(_BYTE **)(v2 + 1256) = 0; *(_QWORD *)(v2 + 1248) = 0; } else { *(_BYTE *)(v2 + 1241) = 0; *(_BYTE *)(v2 + 1240) = 0; } std::string::reserve((__int64 *)(v2 + 1240), 0); v15 = v21; *(_QWORD *)(v2 + 1240) = v20; *(_QWORD *)(v2 + 1248) = v15; *(_QWORD *)(v2 + 1256) = v22; LevelEditorLayer::getSFXIDs(this, &v20); if ( (*(_BYTE *)(v2 + 1264) & 1) != 0 ) { **(_BYTE **)(v2 + 1280) = 0; *(_QWORD *)(v2 + 1272) = 0; } else { *(_BYTE *)(v2 + 1265) = 0; *(_BYTE *)(v2 + 1264) = 0; } std::string::reserve((__int64 *)(v2 + 1264), 0); v16 = v21; *(_QWORD *)(v2 + 1264) = v20; *(_QWORD *)(v2 + 1272) = v16; *(_QWORD *)(v2 + 1280) = v22; v17 = *(_BYTE *)(v2 + 1264) >> 1; if ( (*(_BYTE *)(v2 + 1264) & 1) != 0 ) v17 = *(_QWORD *)(v2 + 1272); if ( !v17 && !v19[0] ) std::string::assign((__int64 *)(v2 + 1240), &byte_11B8890); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source