This commit is contained in:
Riley Labrecque
2023-06-03 16:34:48 -07:00
parent 009fa4e3c7
commit 3ed0ffc6f5
24 changed files with 128 additions and 12 deletions
+19 -2
View File
@@ -1226,7 +1226,12 @@ void CSpaceWarClient::OnGameStateChanged( EClientGameState eGameStateNew )
pchSteamRichPresenceDisplay = SetInGameRichPresence();
bDisplayScoreInRichPresence = true;
}
else if ( m_eGameState == k_EClientRemotePlay )
else if ( m_eGameState == k_EClientRemotePlayInvite )
{
SteamRemotePlay()->BSendRemotePlayTogetherInvite( CSteamID() );
SetGameState( k_EClientGameMenu );
}
else if ( m_eGameState == k_EClientRemotePlaySessions )
{
// we've switched to the remote play menu
m_pRemotePlayList->Show();
@@ -1641,7 +1646,7 @@ void CSpaceWarClient::RunFrame()
SetGameState( k_EClientGameMenu );
break;
case k_EClientRemotePlay:
case k_EClientRemotePlaySessions:
m_pStarField->Render();
m_pRemotePlayList->RunFrame();
@@ -2597,6 +2602,18 @@ void CSpaceWarClient::OnWorkshopItemInstalled( ItemInstalled_t *pParam )
}
//-----------------------------------------------------------------------------
// Purpose: Remote Play Together guest invite was created
//-----------------------------------------------------------------------------
void CSpaceWarClient::OnSteamRemotePlayTogetherGuestInvite( SteamRemotePlayTogetherGuestInvite_t *pParam )
{
char rgch[ 1024 ];
sprintf_safe( rgch, "Remote Play Together guest invite URL: %s\n",
pParam->m_szConnectURL );
OutputDebugString( rgch );
}
//-----------------------------------------------------------------------------
// Purpose: duration control / anti indulgence callback notification for Steam China
// (this can run from an API call, or from an asynchronous callback. see OnDurationControlCallResult)