// // LevelOptionsLayer::setupOptions from 0x14045d210 to 0x14045d6db (1227 bytes) // // 2 xrefs: // > @ 0x140796fc0 // > @ 0x140927d88 // // 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 11:32:32 +0000 // // Hidden C++ exception states: #wind=1 struct cocos2d::CCObject *__fastcall LevelOptionsLayer::setupOptions(__int64 a1) { __int64 v2; // rax __int64 v3; // r9 struct cocos2d::CCObject *result; // rax __int64 v5; // r9 int v6; // eax char *v7; // rsi __int64 v8; // rdi __int64 v9; // rbx __int64 v10; // rax __int64 v11; // rax struct cocos2d::CCSprite *v12; // rax cocos2d::CCObject *v13; // rsi __int64 v14; // rdi __int64 v15; // rbx __int64 v16; // rax __int64 v17; // rax __int128 v18; // [rsp+80h] [rbp-19h] BYREF __int64 v19; // [rsp+90h] [rbp-9h] __int64 v20; // [rsp+98h] [rbp-1h] __int128 v21; // [rsp+A0h] [rbp+7h] BYREF __int64 v22; // [rsp+B0h] [rbp+17h] __int64 v23; // [rsp+B8h] [rbp+1Fh] float v24; // [rsp+100h] [rbp+67h] BYREF float v25; // [rsp+104h] [rbp+6Bh] __int128 *v26; // [rsp+108h] [rbp+6Fh] BYREF char v27; // [rsp+110h] [rbp+77h] BYREF v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v24); GJOptionsLayer::addToggleInternal(a1, "Mini Mode", 0, *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 336LL), &byte_1406ED6E0); GJOptionsLayer::addToggleInternal(a1, "Dual Mode", 1, *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 337LL), &byte_1406ED6E0); v3 = *(_QWORD *)(a1 + 1136); if ( !*(_BYTE *)(v3 + 368) ) GJOptionsLayer::addToggleInternal( a1, "2-Player Mode", 2, *(_BYTE *)(v3 + 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)"); GJOptionsLayer::addToggleInternal(a1, "Mirror Mode", 4, *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 338LL), &byte_1406ED6E0); GJOptionsLayer::addToggleInternal(a1, "Flip\nGravity", 5, *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 369LL), &byte_1406ED6E0); GJOptionsLayer::addToggleInternal( a1, "Rotate\nGameplay", 6, *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 339LL), &byte_1406ED6E0); result = GJOptionsLayer::addToggleInternal( a1, "Reverse\nGameplay", 7, *(_BYTE *)(*(_QWORD *)(a1 + 1136) + 370LL), &byte_1406ED6E0); v5 = *(_QWORD *)(a1 + 1136); if ( !*(_BYTE *)(v5 + 368) ) { GJOptionsLayer::addToggleInternal( a1, "No Time\nPenalty", 20, *(_BYTE *)(v5 + 438), "In platformer mode you automatically lose 1000 points per second. Toggle to disable this penalty."); v26 = &v18; v19 = 12; v20 = 15; strcpy((char *)&v18, "Spawn Group:"); BYTE13(v18) = 0; HIWORD(v18) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, (float)(v24 * 0.5) + 50.0, (float)(v25 * 0.5) - 100.0); SetupTriggerPopup::createValueControlAdvanced( a1, 13, (unsigned int)&v18, v6, 1060320051, 1, 3, 6, 1, 0, 1176255488, 0, 0, 0, 2, 0); v26 = &v21; v21 = 0; v22 = 0; v23 = 0; *(_QWORD *)&v21 = sub_14003D460(0x80u); v22 = 121; v23 = 127; strcpy( (char *)v21, "Lets you set a target position for player spawn.\n" "If the group contains multiple objects a random target will be selected."); v19 = 11; v20 = 15; *(_QWORD *)&v18 = 0x7247206E77617053LL; *((_QWORD *)&v18 + 1) = 7370095; v7 = InfoAlertButton::create((__int64)&v18, (__int64)&v21); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v7); v8 = *(_QWORD *)v7; v9 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v26, (float)((float)(v24 * 0.5) + 50.0) - 55.0, (float)((float)(v25 * 0.5) - 100.0) + 24.0); cocos2d::CCNode::convertToNodeSpace(v9, &v27, v10); (*(void (__fastcall **)(char *, __int64))(v8 + 184))(v7, v11); v12 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_optionsBtn_001.png"); LODWORD(v9) = (_DWORD)v12; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v12 + 160LL))(v12); v13 = CCMenuItemSpriteExtra::create(v9, 0, a1, (__int64)LevelOptionsLayer::onSettings); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v13); v14 = *(_QWORD *)v13; v15 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v26, (float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(v24 * 0.5)) - 25.0, (float)((float)(*(float *)(a1 + 736) * 0.5) + (float)(v25 * 0.5)) - 25.0); cocos2d::CCNode::convertToNodeSpace(v15, &v27, v16); return (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(cocos2d::CCObject *, __int64))(v14 + 184))(v13, v17); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source