mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #438, plugin loading testing session + meeting results
* simulator common, many members now private (info -> read only) * renamed printDirectPlayError -> logDirectPlayError * (re)added ASSERT for FS9 * removed parent from listener (with parent no moveToThread) * removed QFuture / QConcurrent as we have agreed to do * unloading a plugin no longer automatically restarts all listeners this allows a user to set one particualar simulator in the GUI and ony wait for that * stop listener from own signal
This commit is contained in:
@@ -43,7 +43,7 @@ namespace BlackSimPlugin
|
||||
ZeroMemory( addresses.data(), dwNumAddresses * sizeof(LPDIRECTPLAY8ADDRESS) );
|
||||
if (FAILED (hr = m_directPlayPeer->GetLocalHostAddresses(addresses.data(), &dwNumAddresses, 0)))
|
||||
{
|
||||
printDirectPlayError(hr);
|
||||
logDirectPlayError(hr);
|
||||
return address;
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ namespace BlackSimPlugin
|
||||
player.pwszName = wszPlayername.data();
|
||||
if (FAILED(hr = m_directPlayPeer->SetPeerInfo(&player, nullptr, nullptr, DPNSETPEERINFO_SYNC)))
|
||||
{
|
||||
printDirectPlayError(hr);
|
||||
logDirectPlayError(hr);
|
||||
return hr;
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ namespace BlackSimPlugin
|
||||
nullptr, // Player Context
|
||||
0))) // dwFlags
|
||||
{
|
||||
printDirectPlayError(hr);
|
||||
logDirectPlayError(hr);
|
||||
return hr;
|
||||
}
|
||||
else
|
||||
@@ -177,12 +177,12 @@ namespace BlackSimPlugin
|
||||
BlackMisc::CLogMessage(this).info("Hosting terminated!");
|
||||
if (FAILED(hr = m_directPlayPeer->TerminateSession(nullptr, 0, 0)))
|
||||
{
|
||||
return printDirectPlayError(hr);
|
||||
return logDirectPlayError(hr);
|
||||
}
|
||||
|
||||
if (FAILED(hr = m_directPlayPeer->Close(0)))
|
||||
{
|
||||
return printDirectPlayError(hr);
|
||||
return logDirectPlayError(hr);
|
||||
}
|
||||
|
||||
m_hostStatus = Terminated;
|
||||
|
||||
Reference in New Issue
Block a user