// // LevelBindingsLayer::onPaste from 0x798130 to 0x798302 (466 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:59:46 +0000 // int __fastcall LevelBindingsLayer::onPaste(LevelBindingsLayer *this, cocos2d::CCObject *a2) { int *v3; // r0 int v4; // r5 int v5; // r5 void (__fastcall *v6)(LevelBindingsLayer *, cocos2d::CCNode *, int); // r8 cocos2d::CCNode *v7; // r0 int v8; // r0 void (__fastcall *v9)(LevelBindingsLayer *, cocos2d::CCNode *, int); // r8 cocos2d::CCNode *v10; // r0 int v11; // r5 char *v12; // r6 int v13; // r9 char *v14; // r7 char *v15; // r2 char *v16; // r3 void (__fastcall *v17)(LevelBindingsLayer *, cocos2d::CCNode *, int); // r8 cocos2d::CCNode *v18; // r0 char *v20; // [sp+8h] [bp-20h] char *v21[3]; // [sp+10h] [bp-18h] BYREF int v22; // [sp+1Ch] [bp-Ch] BYREF int v23; // [sp+20h] [bp-8h] int v24; // [sp+24h] [bp-4h] int v25; // [sp+28h] [bp+0h] BYREF int v26; // [sp+2Ch] [bp+4h] int v27; // [sp+30h] [bp+8h] v3 = &dword_D2E568[3 * *((unsigned __int8 *)this + 808)]; v4 = *(unsigned __int8 *)v3; if ( (v4 & 1) != 0 ) v5 = v3[1]; else v5 = v4 >> 1; if ( v5 ) { v8 = LevelControlConfig::createFromB64(v3); if ( v8 && *(int *)(v8 + 52) > 0 ) { if ( *((_BYTE *)this + 808) ) v11 = v8 + 88; else v11 = v8 + 68; KeybindSet::clear(*((KeybindSet **)this + 201)); v12 = "up"; do { v13 = *((_DWORD *)v12 + 1); (*(void (__fastcall **)(char **, int, int))(*(_DWORD *)v11 + 8))(v21, v11, v13); v14 = v21[0]; v20 = v21[1]; while ( 1 ) { v15 = v14; if ( v14 == v20 ) break; v14 += 4; (*(void (__fastcall **)(_DWORD, _DWORD, int))(**((_DWORD **)this + 201) + 16))( *((_DWORD *)this + 201), *(_DWORD *)v15, v13); } std::__vector_base::~__vector_base(v21); v16 = v12 + 8; v12 += 4; } while ( v16 != "18LevelBindingsLayer" ); (*(void (__fastcall **)(LevelBindingsLayer *))(*(_DWORD *)this + 652))(this); v17 = *(void (__fastcall **)(LevelBindingsLayer *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Pasted", 6u); v25 = 0; v26 = 0; v27 = 0; std::string::__init(&v25, &unk_B6B226, 0); v18 = TextAlertPopup::create((int)&v22, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)&v25); v17(this, v18, 100); } else { v9 = *(void (__fastcall **)(LevelBindingsLayer *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Invalid config", 0xEu); v25 = 0; v26 = 0; v27 = 0; std::string::__init(&v25, &unk_B6B226, 0); v10 = TextAlertPopup::create((int)&v22, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)&v25); v9(this, v10, 100); } } else { v6 = *(void (__fastcall **)(LevelBindingsLayer *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, "Nothing copied", 0xEu); v25 = 0; v26 = 0; v27 = 0; std::string::__init(&v25, &unk_B6B226, 0); v7 = TextAlertPopup::create((int)&v22, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)&v25); v6(this, v7, 100); } std::string::~string((int)&v25); return std::string::~string((int)&v22); }
GD Web Decomp Icon

GD Web Decomp

Raw Source