Commit Graph

8 Commits

Author SHA1 Message Date
Roland Winklmeier
b16af78142 Load SimConnect dynamically at runtime.
Previously the FSX/P3D driver tried to link a very specific SimConnect version
from the Windows Assembly cache. This caused issues with machines
which did not have this specific version of SimConnect in the assembly
cache since drivers refused to load without much information. Having a different
version of SimConnect in the assembly cache or even in the bin folder did
not help.
To fix this problem, SimConnect is now loaded and resolved manually at
runtime. This allows to try loading different versions from the assembly
cache or prefer to load the shipped one.
For this, the manifests are linked into the binary's resource section and
activated manually before loading. This has the positive effect, that
loading errors can be handled by code instead of raising a cryptic error and
aborting.
2018-07-12 18:29:45 +02:00
Klaus Basan
f728efb3be Ref T270, Ref T275 FSX/P3D moved the common parts of the .pro files into .pri files and included those
Remark: See also https://swift-project.slack.com/archives/G7GD2UP9C/p1528277800000196
2018-06-13 14:00:07 +02:00
Klaus Basan
78747782e4 Ref T270, Ref T275 FSX/P3D .pro files adjusted 2018-06-13 14:00:06 +02:00
Roland Winklmeier
4aaccb44c3 Cleanup the enabled modules in all sub projects
Most modules were just enabled to add include path for dependent headers
2018-06-02 02:08:46 +02:00
Klaus Basan
f252f7542d Ref T118, for x64 P3D do not show SimConnect dll details 2017-10-31 15:39:32 +01:00
Klaus Basan
41f5999094 Ref T118, changed to P3D v4.1 2017-10-31 15:39:10 +01:00
Mathew Sutcliffe
1400f38aa9 Add missing PRE_TARGETDEPS in simulator plugin projects
Summary:
This fixes issue reported by Klaus in Slack:
> when I change something in the plugin driver, I always have to rebuild the plugins before I can debug again.

Also refactored `libraries.pri` to remove duplication.

Reviewers: #swift_pilot_client, rwinklmeier

Reviewed By: #swift_pilot_client, rwinklmeier

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D31
2017-09-24 19:49:18 +01:00
Klaus Basan
d280141563 refs #891, P3D driver / config 2017-04-17 23:57:17 +01:00