From b9d8ae0b1bb7186b0e2e4a225b53006553406b79 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 Jan 2014 10:35:14 +0100 Subject: Fix FSX manifest. Ouch! --- ftnoir_protocol_sc/ftnoir-protocol-sc.rc | 1 + ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | 8 +++++++- ftnoir_protocol_sc/ftnoir_sccontrols.ui | 11 ++++++++--- ftnoir_protocol_sc/scserver-acceleration.manifest | 13 +++++++++++++ 4 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 ftnoir_protocol_sc/scserver-acceleration.manifest (limited to 'ftnoir_protocol_sc') diff --git a/ftnoir_protocol_sc/ftnoir-protocol-sc.rc b/ftnoir_protocol_sc/ftnoir-protocol-sc.rc index 693aa12e..80b6c12c 100644 --- a/ftnoir_protocol_sc/ftnoir-protocol-sc.rc +++ b/ftnoir_protocol_sc/ftnoir-protocol-sc.rc @@ -1,3 +1,4 @@ #include 142 RT_MANIFEST scserver.manifest 143 RT_MANIFEST scserver-sp2.manifest +144 RT_MANIFEST scserver-acceleration.manifest \ No newline at end of file diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp index 8449f6ce..9c144b5d 100644 --- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp +++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp @@ -149,7 +149,12 @@ public: actx.cbSize = sizeof(ACTCTXA); actx.lpResourceName = MAKEINTRESOURCEA(resid); actx.dwFlags = ACTCTX_FLAG_RESOURCE_NAME_VALID; - QString path = QCoreApplication::applicationDirPath() + "/opentrack-proto-simconnect.dll"; +#ifdef _MSC_VER +# define PREFIX "" +#else +# define PREFIX "lib" +#endif + QString path = QCoreApplication::applicationDirPath() + "/" PREFIX "opentrack-proto-simconnect.dll"; QByteArray name = QFile::encodeName(path); actx.lpSource = name.constData(); hactctx = CreateActCtxA(&actx); @@ -194,6 +199,7 @@ bool FTNoIR_Protocol::checkServerInstallationOK() ActivationContext ctx(142 + act); + SCClientLib.setFileName("SimConnect.dll"); if (!SCClientLib.load()) { qDebug() << "SC load" << SCClientLib.errorString(); return false; diff --git a/ftnoir_protocol_sc/ftnoir_sccontrols.ui b/ftnoir_protocol_sc/ftnoir_sccontrols.ui index 17e94c4b..430b3912 100644 --- a/ftnoir_protocol_sc/ftnoir_sccontrols.ui +++ b/ftnoir_protocol_sc/ftnoir_sccontrols.ui @@ -9,8 +9,8 @@ 0 0 - 258 - 61 + 290 + 79 @@ -38,7 +38,7 @@ - Acceleration + SP1 @@ -46,6 +46,11 @@ SP2 + + + Acceleration + + diff --git a/ftnoir_protocol_sc/scserver-acceleration.manifest b/ftnoir_protocol_sc/scserver-acceleration.manifest new file mode 100644 index 00000000..06459587 --- /dev/null +++ b/ftnoir_protocol_sc/scserver-acceleration.manifest @@ -0,0 +1,13 @@ + + + + + + + + + + + + + -- cgit v1.2.3