mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 09:54:16 +08:00
Trigger FSX/P3D send id tracing always for an exception
This commit is contained in:
@@ -61,6 +61,8 @@ namespace BlackSimPlugin
|
|||||||
case SIMCONNECT_RECV_ID_EXCEPTION:
|
case SIMCONNECT_RECV_ID_EXCEPTION:
|
||||||
{
|
{
|
||||||
if (!simulatorFsxP3D->stillDisplayReceiveExceptions()) { break; }
|
if (!simulatorFsxP3D->stillDisplayReceiveExceptions()) { break; }
|
||||||
|
simulatorFsxP3D->triggerAutoTraceSendId();
|
||||||
|
|
||||||
SIMCONNECT_RECV_EXCEPTION *exception = static_cast<SIMCONNECT_RECV_EXCEPTION *>(pData);
|
SIMCONNECT_RECV_EXCEPTION *exception = static_cast<SIMCONNECT_RECV_EXCEPTION *>(pData);
|
||||||
const DWORD exceptionId = exception->dwException;
|
const DWORD exceptionId = exception->dwException;
|
||||||
const DWORD sendId = exception->dwSendID;
|
const DWORD sendId = exception->dwSendID;
|
||||||
@@ -115,7 +117,6 @@ namespace BlackSimPlugin
|
|||||||
CLogMessage(simulatorFsxP3D).warning("Caught simConnect exception: '%1' '%2' | send details: '%3'")
|
CLogMessage(simulatorFsxP3D).warning("Caught simConnect exception: '%1' '%2' | send details: '%3'")
|
||||||
<< exceptionString << ex
|
<< exceptionString << ex
|
||||||
<< (sendIdDetails.isEmpty() ? "N/A" : sendIdDetails);
|
<< (sendIdDetails.isEmpty() ? "N/A" : sendIdDetails);
|
||||||
simulatorFsxP3D->triggerAutoTraceSendId();
|
|
||||||
}
|
}
|
||||||
break; // SIMCONNECT_RECV_ID_EXCEPTION
|
break; // SIMCONNECT_RECV_ID_EXCEPTION
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user