// // InfoLayer::onCopyLevelID from 0x1007b1f20 to 0x1007b202e (270 bytes) // // 1 xrefs: // > InfoLayer::setupLevelInfo @ 0x1007b059c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall InfoLayer::onCopyLevelID(InfoLayer *a1, cocos2d::CCObject *a2) { double v2; // xmm0_8 GJUserScore *m_score; // rax int m_userID; // eax GJLevelList *m_levelList; // rcx GJGameLevel *m_level; // rcx __int64 v7; // rsi __int64 v8; // rdx __int64 v9; // rcx __int64 v10; // r8 __int64 v11; // r9 cocos2d::CCObject *v12; // rax size_t v13[3]; // [rsp+0h] [rbp-60h] BYREF __int128 v14; // [rsp+18h] [rbp-48h] BYREF void *v15; // [rsp+28h] [rbp-38h] void *v16[6]; // [rsp+30h] [rbp-30h] BYREF m_score = a1->m_score; if ( m_score ) { m_userID = m_score->m_userID; } else { m_levelList = a1->m_levelList; if ( m_levelList ) { m_userID = -m_levelList->m_listID; } else { m_level = a1->m_level; if ( !m_level ) { v7 = 0; goto LABEL_9; } m_userID = m_level->m_levelID.random - m_level->m_levelID.seed; } } v7 = (unsigned int)-m_userID; if ( m_userID > 0 ) v7 = (unsigned int)m_userID; LABEL_9: GameToolbox::intToString(v13, v7, v2); PlatformToolbox::copyToClipboard((__int64)v13, v7, v8, v9, v10, v11); if ( (v13[0] & 1) != 0 ) operator delete((void *)v13[2]); strcpy((char *)v16, "&Copied to clipboard"); LOWORD(v14) = 0; v12 = TextAlertPopup::create((__int64)v16, 0x96u, &v14, (__m128)0x3F000000u, 0.60000002); ((void (__fastcall *)(InfoLayer *, cocos2d::CCObject *, __int64))a1->addChild_0)(a1, v12, 100); if ( (v14 & 1) != 0 ) operator delete(v15); if ( ((__int64)v16[0] & 1) != 0 ) operator delete(v16[2]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source