// // sub_10095EA10 from 0x10095ea10 to 0x10095ec05 (501 bytes) // // 1 xrefs: // > PlatformerControlsPopup::init @ 0x10095e0ce // // This function is hookable on this platform (idp: pc, 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:38:44 +0000 // void __fastcall sub_10095EA10(__int64 a1) { __int64 v1; // r14 char v3; // al _DWORD *v4; // rdi char *v5; // rax __int64 v6; // rdi __int64 v7; // rax bool v8; // al __int64 v9; // rdi __int64 v10; // rax const char *v11; // rsi __int64 v12; // rax char *v13; // rax __int128 v14; // [rsp+0h] [rbp-40h] BYREF void *__p; // [rsp+10h] [rbp-30h] __int128 v16; // [rsp+18h] [rbp-28h] BYREF void *v17; // [rsp+28h] [rbp-18h] v1 = *(_QWORD *)(a1 + 1048); if ( v1 ) { v3 = *(_BYTE *)(v1 + 1784); if ( (v3 & 1) != 0 ) { if ( !*(_QWORD *)(v1 + 1792) ) return; } else if ( !v3 ) { return; } std::string::operator=((std::string *)(v1 + 1816), (const std::string *)(v1 + 1784)); *(_DWORD *)(v1 + 1840) = 1; *(_BYTE *)(v1 + 1844) = 0; v4 = *(_DWORD **)(a1 + 1064); if ( v4 ) { cocos2d::CCObject::release(v4); *(_QWORD *)(a1 + 1064) = 0; } v5 = sub_100923C60((std::string *)(*(_QWORD *)(a1 + 1048) + 1816LL)); *(_DWORD *)(a1 + 1296) = sub_100923E00(v5); v6 = *(_QWORD *)(a1 + 1104); if ( v6 ) { v7 = *(_QWORD *)(a1 + 1048); if ( v7 ) v8 = *(_DWORD *)(v7 + 1840) == 1; else v8 = 0; CCMenuItemToggler::toggle(v6, v8); } v9 = *(_QWORD *)(a1 + 1112); if ( v9 ) { v10 = *(_QWORD *)(a1 + 1048); if ( v10 ) { v11 = "Edit Global Controls"; if ( *(_DWORD *)(v10 + 1840) == 1 ) v11 = "Edit Custom Controls"; } else { v11 = "Edit Global Controls"; } (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v9 + 928LL))(v9, v11); } sub_10095ED80(a1); if ( *(_QWORD *)(GameManager::sharedState() + 544) && *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 13288LL) ) { v12 = GameManager::sharedState(); UILayer::reapplyLevelControls(*(_QWORD *)(*(_QWORD *)(v12 + 544) + 13288LL)); } v17 = operator new(0x20u); *(_QWORD *)&v16 = 33; *((_QWORD *)&v16 + 1) = 24; strcpy((char *)v17, "Creator controls applied"); LOWORD(v14) = 0; v13 = TextAlertPopup::create(&v16, 0x96u, &v14, 0.5, 0.60000002); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v13, 100); if ( (v14 & 1) != 0 ) operator delete(__p); if ( (v16 & 1) != 0 ) operator delete(v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source