diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-28 00:39:25 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-12-28 00:39:25 +0100 |
commit | e7877ebef831f1cb36f911e2784af8268c26b5bb (patch) | |
tree | ca61551c7797380013390f2ec036b4004c5d2293 /ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | |
parent | a4fe36ce7b86fbc9527da067a14682b82ef62e7a (diff) |
simconnect: allow for multiple manifest attempts
Diffstat (limited to 'ftnoir_protocol_sc/ftnoir_protocol_sc.cpp')
-rw-r--r-- | ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp index e5d427dd..8449f6ce 100644 --- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp +++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp @@ -76,7 +76,6 @@ FTNoIR_Protocol::~FTNoIR_Protocol() // Load the current Settings from the currently 'active' INI-file. // void FTNoIR_Protocol::loadSettings() { -// None yet... } // @@ -186,9 +185,14 @@ bool FTNoIR_Protocol::checkServerInstallationOK() { qDebug() << "SCCheckClientDLL says: Starting Function"; - SCClientLib.setFileName("SimConnect.DLL"); + QSettings settings("opentrack"); + QString currentFile = settings.value ( "SettingsFile", QCoreApplication::applicationDirPath() + "/settings/default.ini" ).toString(); + QSettings iniFile( currentFile, QSettings::IniFormat ); // Application settings (in INI-file) + iniFile.beginGroup ( "FSX" ); + int act = iniFile.value("version", 0).toInt(); + iniFile.endGroup(); - ActivationContext ctx(142); + ActivationContext ctx(142 + act); if (!SCClientLib.load()) { qDebug() << "SC load" << SCClientLib.errorString(); |