// // GJGameLevel::syncUneditedControls from 0x815b24 to 0x815c1c (248 bytes) // // 3 xrefs: // > GameLevelManager::setLevelControlsTemplate @ 0x81ca24 // > GameLevelManager::applyLevelControlsSection @ 0x8368e8 // > @ 0xdf690 // // 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:54:54 +0000 // __int64 __fastcall GJGameLevel::syncUneditedControls(GJGameLevel *this) { __int64 result; // x0 GameManager *v3; // x0 __int64 v4; // x20 char *v5; // x1 size_t v6; // x2 int v7; // w0 result = GJGameLevel::isPlatformer(this); if ( (_BYTE)result ) { result = *((unsigned __int8 *)this + 1000); if ( *((_BYTE *)this + 1000) ) { result = *((unsigned __int8 *)this + 1844); if ( !*((_BYTE *)this + 1844) ) { v3 = (GameManager *)GameManager::sharedState((GameManager *)result); result = (unsigned __int8)GameManager::getGameVariable(v3, "0203"); if ( !(_BYTE)result ) { if ( (*((_BYTE *)this + 1816) & 1) != 0 ) v4 = *((_QWORD *)this + 228); else v4 = *((_BYTE *)this + 1816) >> 1; if ( (*((_BYTE *)this + 1784) & 1) != 0 ) { v5 = *((char **)this + 225); v6 = *((_QWORD *)this + 224); } else { v5 = (char *)this + 1785; v6 = *((_BYTE *)this + 1784) >> 1; } std::string::assign((__int64 *)this + 227, v5, v6); v7 = *((unsigned __int8 *)this + 1816); if ( v4 ) { if ( (v7 & 1) != 0 ) { result = *((_QWORD *)this + 228); LABEL_13: if ( !result ) *((_DWORD *)this + 460) = 0; return result; } LODWORD(result) = v7 >> 1; } else { if ( (v7 & 1) != 0 ) { result = *((_QWORD *)this + 228); if ( !result ) goto LABEL_13; LABEL_16: *((_DWORD *)this + 460) = 1; return 1; } LODWORD(result) = v7 >> 1; if ( (_DWORD)result ) goto LABEL_16; } result = (int)result; goto LABEL_13; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source