// // LevelOptionsLayer::setupOptions from 0x10025b4d0 to 0x10025b93b (1131 bytes) // // 1 xrefs: // > @ 0x100af4430 // // 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:27:28 +0000 // __int64 __fastcall LevelOptionsLayer::setupOptions(__int64 a1, __int64 a2) { __int64 v3; // rax unsigned __int8 *v4; // rax __int64 result; // rax __int64 v6; // r14 __int64 v7; // r15 __int64 v8; // r14 __int64 v9; // r14 __int64 v10; // r15 _BYTE v11[8]; // [rsp+38h] [rbp-88h] BYREF _QWORD v12[2]; // [rsp+40h] [rbp-80h] BYREF void *v13; // [rsp+50h] [rbp-70h] std::string v14; // [rsp+58h] [rbp-68h] BYREF char v15; // [rsp+70h] [rbp-50h] BYREF _BYTE v16[23]; // [rsp+71h] [rbp-4Fh] BYREF _BYTE v17[8]; // [rsp+88h] [rbp-38h] BYREF float v18; // [rsp+90h] [rbp-30h] BYREF float v19; // [rsp+94h] [rbp-2Ch] v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(&v18, v3); GJOptionsLayer::addToggle(a1, "Mini Mode", 0, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 336LL), ""); GJOptionsLayer::addToggle(a1, "Dual Mode", 1, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 337LL), ""); v4 = *(unsigned __int8 **)(a1 + 1120); if ( !v4[368] ) { GJOptionsLayer::addToggle( a1, "2-Player Mode", 2, v4[340], "Players are controlled separately.\n" "Player 1: Left side\n" "Player 2: Right side\n" "(You can change the controls in the options menu)"); v4 = *(unsigned __int8 **)(a1 + 1120); } GJOptionsLayer::addToggle(a1, "Mirror Mode", 4, v4[338], ""); GJOptionsLayer::addToggle(a1, "Flip\nGravity", 5, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 369LL), ""); GJOptionsLayer::addToggle(a1, "Rotate\nGameplay", 6, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 339LL), ""); GJOptionsLayer::addToggle(a1, "Reverse\nGameplay", 7, *(unsigned __int8 *)(*(_QWORD *)(a1 + 1120) + 370LL), ""); result = *(_QWORD *)(a1 + 1120); if ( !*(_BYTE *)(result + 368) ) { GJOptionsLayer::addToggle( a1, "No Time\nPenalty", 20, *(unsigned __int8 *)(result + 430), "In platformer mode you automatically lose 1000 points per second. Toggle to disable this penalty."); v14.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)24; strcpy(v14.__r_.__value_.__s.__data_, "Spawn Group:"); sub_100278250(v17, (float)(v18 * 0.5) + 50.0, (float)(0.5 * v19) + -100.0); SetupTriggerPopup::createValueControlAdvanced( a1, 13, &v14, (__int64)v17, 1, 3u, 0.69999999, 0.0, 9999.0, 6u, 1, 0, 0, 0, 2u, 0); if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v14.__r_.__value_.__l.__data_); v15 = 22; strcpy(v16, "Spawn Group"); v13 = operator new(0x80u); v12[0] = 129; v12[1] = 121; strcpy( (char *)v13, "Lets you set a target position for player spawn.\n" "If the group contains multiple objects a random target will be selected."); v6 = InfoAlertButton::create(&v15, v12, 0.5); if ( (v12[0] & 1) != 0 ) operator delete(v13); if ( (v15 & 1) != 0 ) operator delete(*(void **)&v16[15]); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v6); v7 = *(_QWORD *)(a1 + 552); sub_100278250(v11, (float)((float)(v18 * 0.5) + 50.0) + -55.0, (float)((float)(v19 * 0.5) + -100.0) + 24.0); cocos2d::CCNode::convertToNodeSpace(v17, v7, v11); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 184LL))(v6, v17); v8 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.60000002); v9 = CCMenuItemSpriteExtra::create(v8, 0, a1, LevelOptionsLayer::onSettings, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v9); v10 = *(_QWORD *)(a1 + 552); sub_100278250( v11, (float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(v18 * 0.5)) + -25.0, (float)((float)(0.5 * *(float *)(a1 + 736)) + (float)(v19 * 0.5)) + -25.0); cocos2d::CCNode::convertToNodeSpace(v17, v10, v11); return (*(__int64 (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL))(v9, v17); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source