mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
fix(p3d): Ignore warning when requesting MSFS SimVars
This commit is contained in:
@@ -81,6 +81,13 @@ namespace swift::simplugin::fsxcommon
|
|||||||
switch (exceptionId)
|
switch (exceptionId)
|
||||||
{
|
{
|
||||||
case SIMCONNECT_EXCEPTION_OPERATION_INVALID_FOR_OBJECT_TYPE: break;
|
case SIMCONNECT_EXCEPTION_OPERATION_INVALID_FOR_OBJECT_TYPE: break;
|
||||||
|
case SIMCONNECT_EXCEPTION_NAME_UNRECOGNIZED:
|
||||||
|
{
|
||||||
|
// MSFS-specific SimVars might fail on P3D.
|
||||||
|
// Silently ignore them as they are not accessed.
|
||||||
|
logGenericExceptionInfo = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case SIMCONNECT_EXCEPTION_UNRECOGNIZED_ID:
|
case SIMCONNECT_EXCEPTION_UNRECOGNIZED_ID:
|
||||||
break; // Specifies that the client event, request ID, data definition ID, or object ID was not
|
break; // Specifies that the client event, request ID, data definition ID, or object ID was not
|
||||||
// recognized
|
// recognized
|
||||||
|
|||||||
Reference in New Issue
Block a user