mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 08:55:43 +08:00
refs #546, allows to run on Win10 without DirectX
Does not fix that it is asked to install DX, but avoids the crash if installation is denied
This commit is contained in:
@@ -92,7 +92,8 @@ namespace BlackSimPlugin
|
|||||||
{
|
{
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
|
|
||||||
if (m_hostStatus == Hosting) return hr;
|
if (m_hostStatus == Hosting) { return hr; }
|
||||||
|
if (!m_directPlayPeer) { return S_FALSE; }
|
||||||
|
|
||||||
DPN_APPLICATION_DESC dpAppDesc;
|
DPN_APPLICATION_DESC dpAppDesc;
|
||||||
|
|
||||||
@@ -108,7 +109,6 @@ namespace BlackSimPlugin
|
|||||||
ZeroMemory(&playerInfo, sizeof(PLAYER_INFO_STRUCT));
|
ZeroMemory(&playerInfo, sizeof(PLAYER_INFO_STRUCT));
|
||||||
strcpy(playerInfo.szAircraft, "Boeing 737-400");
|
strcpy(playerInfo.szAircraft, "Boeing 737-400");
|
||||||
|
|
||||||
|
|
||||||
playerInfo.dwFlags = PLAYER_INFO_STRUCT::PARAMS_RECV | PLAYER_INFO_STRUCT::PARAMS_SEND;
|
playerInfo.dwFlags = PLAYER_INFO_STRUCT::PARAMS_RECV | PLAYER_INFO_STRUCT::PARAMS_SEND;
|
||||||
|
|
||||||
// Prepare and set the player information structure.
|
// Prepare and set the player information structure.
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ namespace BlackSimPlugin
|
|||||||
|
|
||||||
bool CLobbyClient::canLobbyConnect()
|
bool CLobbyClient::canLobbyConnect()
|
||||||
{
|
{
|
||||||
|
if (!m_dpLobbyClient) { return false; }
|
||||||
GUID appGuid = CFs9Sdk::guid();
|
GUID appGuid = CFs9Sdk::guid();
|
||||||
DWORD dwSize = 0;
|
DWORD dwSize = 0;
|
||||||
DWORD dwItems = 0;
|
DWORD dwItems = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user