// // FriendRequestPopup::onBlock from 0x1002d9bd8 to 0x1002d9d00 (296 bytes) // // 1 xrefs: // > FriendRequestPopup::loadFromGJFriendRequest @ 0x1002d990c // // 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 FriendRequestPopup::onBlock(FriendRequestPopup *a1, cocos2d::CCObject *a2) { GameLevelManager *v3; // x0 const char *v4; // x8 cocos2d::CCString *v5; // x0 char *CString; // x0 char *v7; // x1 FLAlertLayer *v8; // x19 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v10; // [xsp+1Fh] [xbp-41h] void *v11[2]; // [xsp+20h] [xbp-40h] BYREF char v12; // [xsp+37h] [xbp-29h] void *v13[2]; // [xsp+38h] [xbp-28h] BYREF char v14; // [xsp+4Fh] [xbp-11h] v3 = GameLevelManager::sharedState(); GameLevelManager::tryGetUsername((__int64)v3, a1->m_request->m_accountID, (__int64)v13); if ( v14 >= 0 ) v4 = (const char *)v13; else v4 = (const char *)v13[0]; v5 = (cocos2d::CCString *)sub_100268F4C( "Are you sure you want to block %s?\n" "They will no longer be able to:\n" "-View your profile.\n" "-Send you a friend request.\n" "-Send you messages, and all older messages from them will be deleted.", v4); CString = (char *)cocos2d::CCString::getCString(v5); sub_100009900(v11, CString); if ( v12 >= 0 ) v7 = (char *)v11; else v7 = (char *)v11[0]; sub_100009900(__p, v7); v8 = FLAlertLayer::create( (__int64)&a1->FLAlertLayerProtocol, (__int64)"Confirm Block", (__int64)__p, (__int64)"Back", (__int64)"Block", 0, 380.0); if ( v10 < 0 ) operator delete(__p[0]); ButtonSprite::updateBGImage(v8->m_button2, "GJ_button_06.png"); ((void (__fastcall *)(FLAlertLayer *, __int64))v8->setTag)(v8, 1); ((void (__fastcall *)(FLAlertLayer *))v8->show)(v8); if ( v12 < 0 ) operator delete(v11[0]); if ( v14 < 0 ) operator delete(v13[0]); }