// // EditorUI::setDpadStep from 0x1401f3e60 to 0x1401f3f8c (300 bytes) // // 6 xrefs: // > EditorUI::handleEditorAction @ 0x1401c372c // > EditorUI::createDpadMoveMenu @ 0x1401f3df6 // > EditorUI::onDpadStep @ 0x1401f3fed // > @ 0x1408a32f4 // > @ 0x1408a3304 // > @ 0x14091aa20 // // 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:28:09 +0000 // void __fastcall EditorUI::setDpadStep(__int64 a1, unsigned int a2) { signed int v4; // esi signed int i; // edi struct cocos2d::CCObject *v6; // rax struct cocos2d::CCObject *v7; // rax const char *v8; // rdi __int64 v9; // rax if ( *(_QWORD *)(a1 + 1664) && a2 <= 8 ) { v4 = 0; *(_DWORD *)(a1 + 1672) = a2; for ( i = 0; i < (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1680)); ++i ) { v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1680), i); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v6 + 64LL))( v6, (unsigned int)(i + *((_DWORD *)&unk_1407032B0 + 8 * *(int *)(a1 + 1672)))); } if ( (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1688)) > 0 ) { do { v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1688), v4); v8 = "GJ_button_04.png"; if ( v4 == a2 ) v8 = "GJ_button_02.png"; v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v7 + 952LL))(v7); ButtonSprite::updateBGImage(v9, v8); ++v4; } while ( v4 < (int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1688)) ); } EditorUI::updateDpadStepLabel(a1); } }