// // GameSettingsLayer::onCustomButton from 0x1006032a0 to 0x100603425 (389 bytes) // // 1 xrefs: // > @ 0x100b7f4d0 // // 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:34:31 +0000 // void __fastcall GameSettingsLayer::onCustomButton(__int64 a1, __int64 a2) { int v2; // eax _QWORD *v3; // r14 __int64 v4; // rax __int64 v5; // rax __int64 v6; // rax __int128 v7; // [rsp+8h] [rbp-28h] BYREF void *__p; // [rsp+18h] [rbp-18h] v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); if ( v2 == -1004 ) { v6 = sub_1008B3FB0(); LABEL_11: (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6); return; } if ( v2 != -1003 ) { if ( v2 == -1001 ) { v3 = (_QWORD *)GJSongBrowser::create(); v3[74] = a1 + 1088; v4 = cocos2d::CCDirector::sharedDirector(); (*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(v4 + 272) + 464LL))( *(_QWORD *)(v4 + 272), v3, 106); (*(void (__fastcall **)(_QWORD *, _QWORD))(*v3 + 1328LL))(v3, 0); } return; } if ( *(_BYTE *)(GJKeybindManager::sharedState(a2) + 184) != 1 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 344LL))(a1, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1000LL))(a1, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); v6 = KeybindingsLayer::create(a1); goto LABEL_11; } __p = operator new(0x58u); *(_QWORD *)&v7 = 89; *((_QWORD *)&v7 + 1) = 87; strcpy((char *)__p, "You cannot edit Global Controls while Custom Level Controls are active."); v5 = sub_100493AB0(0, (__int64)"Keybinds", &v7, (__int64)"OK", 0); (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5); if ( (v7 & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source