// // ProfilePage::onCopyName from 0x4c4318 to 0x4c4422 (266 bytes) // // 0 xrefs: // // 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 ProfilePage::onCopyName(ProfilePage *a1, cocos2d::CCObject *a2) { GameLevelManager *v3; // r0 void (__fastcall *addChild_0)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int); // r10 cocos2d::CCNode *v5; // r0 int v6; // [sp+8h] [bp-18h] BYREF _BYTE v7[4]; // [sp+Ch] [bp-14h] BYREF const char *v8; // [sp+10h] [bp-10h] BYREF char v9; // [sp+14h] [bp-Ch] BYREF _BYTE v10[4]; // [sp+18h] [bp-8h] BYREF if ( a1->m_score ) { v3 = GameLevelManager::sharedState(); GameLevelManager::tryGetUsername( (GameLevelManager *)&v6, (GameLevelManager_vtbl *)v3, a1->m_score->m_accountID, (int)a1->m_score); if ( !*(_DWORD *)(v6 - 12) ) { sub_775C20(v7); sub_774794(&v6, v7); sub_774008(v7); } if ( !*(_DWORD *)(v6 - 12) ) sub_7753D4((int)&v6, "-"); sub_775C20(&v8); PlatformToolbox::copyToClipboard(&v8); sub_774008(&v8); addChild_0 = a1->addChild_0; sub_776584((int)&v9, "Copied to clipboard"); sub_776584((int)v10, (char *)&unk_939830); v5 = TextAlertPopup::create((TextAlertPopup *)&v9, (std::string)1056964608, 0.6, 150, (int)v10); addChild_0(a1, v5, 100); sub_774008(v10); sub_774008(&v9); sub_774008(&v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source