// // GJBaseGameLayer::loadLevelSettings from 0x9a8e28 to 0x9a8f58 (304 bytes) // // 6 xrefs: // > PlayLayer::prepareCreateObjectsFromSetup @ 0x700a38 // > LevelEditorLayer::onPlaytest @ 0x79633c // > LevelEditorLayer::levelSettingsUpdated @ 0x799a8c // > LevelEditorLayer::createObjectsFromSetup @ 0x7ae370 // > LevelEditorLayer::init @ 0x7af804 // > @ 0xdd980 // // 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:58:11 +0000 // __int64 __fastcall GJBaseGameLayer::loadLevelSettings(GJBaseGameLayer *this) { char *v1; // x20 char v3; // w1 __int64 v4; // x0 char shouldUseYSection; // w0 int v6; // s0 __int64 result; // x0 unsigned int *v8; // x1 GameObject **v9; // x20 char *v10; // x21 GameObject *v11; // x1 v1 = (char *)this + 0x2000; v3 = *(_BYTE *)(*((_QWORD *)this + 409) + 341LL); *((_BYTE *)this + 12238) = v3; PlayerObject::togglePlatformerMode(*((_QWORD *)this + 407), v3); PlayerObject::togglePlatformerMode(*((_QWORD *)this + 408), v1[4046]); if ( v1[4046] ) *(_DWORD *)(*((_QWORD *)this + 242) + 900LL) = 5; *(_BYTE *)(*((_QWORD *)this + 407) + 2904LL) = *(_BYTE *)(*((_QWORD *)this + 409) + 452LL) ^ 1; *(_BYTE *)(*((_QWORD *)this + 408) + 2904LL) = *(_BYTE *)(*((_QWORD *)this + 409) + 452LL) ^ 1; *(_BYTE *)(*((_QWORD *)this + 407) + 2528LL) = *(_BYTE *)(*((_QWORD *)this + 409) + 461LL) ^ 1; *(_BYTE *)(*((_QWORD *)this + 408) + 2528LL) = *(_BYTE *)(*((_QWORD *)this + 409) + 461LL) ^ 1; v4 = *((_QWORD *)this + 242); if ( *(int *)(v4 + 1232) <= 0 ) *(_DWORD *)(v4 + 1232) = *(_DWORD *)(*((_QWORD *)this + 409) + 432LL); shouldUseYSection = LevelSettingsObject::shouldUseYSection(*((LevelSettingsObject **)this + 409)); v6 = 0; if ( shouldUseYSection ) v6 = 1008981770; result = *((_QWORD *)this + 410); *((_DWORD *)this + 3409) = v6; if ( result ) { v8 = *(unsigned int **)(result + 56); result = *v8; if ( (_DWORD)result ) { v9 = *((GameObject ***)v8 + 2); result = 8LL * (unsigned int)result - 8; v10 = (char *)v9 + result; if ( v9 <= (GameObject **)((char *)v9 + result) ) { do { v11 = *v9; if ( !*v9 ) break; ++v9; result = GJBaseGameLayer::applyLevelSettings(this, v11); } while ( v10 >= (char *)v9 ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source