// // ShareCommentLayer::onShare from 0x4319ac to 0x431b20 (372 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 ShareCommentLayer::onShare(ShareCommentLayer *a1, cocos2d::CCObject *a2) { CommentType m_commentType; // r5 GameLevelManager *v4; // r0 const char *v5; // r7 GameLevelManager *v6; // r8 int v7; // r7 std::string v8; // r2 GJMultiplayerManager *v9; // r7 ShareCommentDelegate *m_delegate; // r7 void (__fastcall *shareCommentClosed)(ShareCommentDelegate *__hidden, std::string, ShareCommentLayer *); // r8 std::string *p_m_descText; // r7 int v13; // r8 CommentType v14; // r3 GameLevelManager *v15; // r0 const char *m_itemID; // r8 GameLevelManager *v17; // r9 int m_percentEnabled; // r3 GameLevelManager *v19; // r8 int v20; // r2 int v21; // r3 UploadPopupDelegate v22; // [sp+8h] [bp-Ch] BYREF m_commentType = a1->m_commentType; if ( m_commentType != FriendRequest ) { if ( m_commentType == Multiplayer ) { v9 = GJMultiplayerManager::sharedState(); sub_775C20(&v22); GJMultiplayerManager::uploadComment(v9, (std::string)&v22, a1->m_itemID); } else if ( (unsigned int)(m_commentType - 4) > 1 ) { p_m_descText = &a1->m_descText; sub_776584((int)&v22, (char *)&unk_939830); v13 = sub_774DBC(p_m_descText, &v22); sub_774008(&v22); if ( !v13 ) goto LABEL_17; v14 = a1->m_commentType; if ( v14 ) { if ( v14 != Account ) goto LABEL_17; v19 = GameLevelManager::sharedState(); sub_775C20(&v22); GameLevelManager::uploadAccountComment(v19, (int)&v22, v20, v21); } else { v15 = GameLevelManager::sharedState(); m_itemID = (const char *)a1->m_itemID; v17 = v15; sub_775C20(&v22); m_percentEnabled = a1->m_percentEnabled; if ( a1->m_percentEnabled ) m_percentEnabled = a1->m_percent; GameLevelManager::uploadLevelComment(v17, m_itemID, (int)&v22, (const char *)m_percentEnabled); } } else { m_delegate = a1->m_delegate; if ( !m_delegate ) goto LABEL_17; shareCommentClosed = m_delegate->shareCommentClosed; sub_775C20(&v22); ((void (__fastcall *)(ShareCommentDelegate *, UploadPopupDelegate *, ShareCommentLayer *))shareCommentClosed)( m_delegate, &v22, a1); } sub_774008(&v22); goto LABEL_17; } GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; v4 = GameLevelManager::sharedState(); v5 = (const char *)a1->m_itemID; v6 = v4; sub_775C20(&v22); v7 = GameLevelManager::uploadFriendRequest(v6, v5, (int *)&v22); sub_774008(&v22); if ( v7 ) { sub_776584((int)&v22, "Sending..."); a1->m_uploadPopup = (UploadActionPopup *)UploadActionPopup::create( (UploadActionPopup *)&a1->UploadPopupDelegate, &v22, v8); sub_774008(&v22); a1->m_uploadPopup->show(a1->m_uploadPopup); return; } LABEL_17: ShareCommentLayer::onClose(a1, nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source