// // SelectArtLayer::onSelectCustom from 0x14045c180 to 0x14045c23c (188 bytes) // // 8 xrefs: // > LevelSettingsLayer::onGArt @ 0x14045aecb // > SetupSmartBlockLayer::onSelectPremade @ 0x1405ee38a // > SelectArtLayer::init @ 0x14045bd64 // > SelectArtLayer::init @ 0x14045be96 // > SelectArtLayer::init @ 0x14045bfae // > @ 0x1408cd52c // > @ 0x1408cd53c // > @ 0x140927cf8 // // 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 // unsigned int __fastcall SelectArtLayer::onSelectCustom(__int64 a1, __int64 a2) { int *v2; // rbx int v4; // eax cocos2d::CCArray *v5; // rcx unsigned int v6; // edi unsigned int result; // eax struct cocos2d::CCObject *v8; // rax const char *v9; // rdx v2 = (int *)(a1 + 684); if ( a2 ) *v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v4 = *v2; if ( *v2 >= 1 ) { *v2 = v4; if ( v4 > 3 ) v4 = 3; } else { v4 = 1; *v2 = 1; } v5 = *(cocos2d::CCArray **)(a1 + 672); v6 = 0; *v2 = v4; result = cocos2d::CCArray::count(v5); if ( result ) { do { v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 672), v6++); v9 = "GJ_button_02.png"; if ( *v2 != v6 ) v9 = "GJ_button_04.png"; ButtonSprite::updateBGImage((__int64)v8, v9); result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 672)); } while ( v6 < result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source