summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-02 20:53:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-02 20:53:51 +0200
commit2fdbee9e9228a77b0f870a2245cfac33bc41aeba (patch)
tree7645c0aa6e3fde8fb07a90f1e41928dd6800ae4c /ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
parenta7e894f2158835fc992f4c6150e478e2e8356549 (diff)
Everything works now
Diffstat (limited to 'ftnoir_protocol_ft/ftnoir_protocol_ft.cpp')
-rw-r--r--ftnoir_protocol_ft/ftnoir_protocol_ft.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
index 5616915a..b1c53b8f 100644
--- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
+++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
@@ -313,7 +313,7 @@ PDWORD_PTR MsgResult = 0;
// Returns 'true' if all seems OK.
//
//
-bool FTNoIR_Protocol::checkServerInstallationOK( HANDLE handle )
+bool FTNoIR_Protocol::checkServerInstallationOK()
{
QSettings settings("Freetrack", "FreetrackClient"); // Registry settings (in HK_USER)
QSettings settingsTIR("NaturalPoint", "NATURALPOINT\\NPClient Location"); // Registry settings (in HK_USER)
@@ -392,7 +392,7 @@ bool FTNoIR_Protocol::checkServerInstallationOK( HANDLE handle )
} catch(...) {
settings.~QSettings();
}
- return FTCreateMapping( handle );
+ return FTCreateMapping();
}
//
@@ -400,7 +400,7 @@ bool FTNoIR_Protocol::checkServerInstallationOK( HANDLE handle )
// It contains the tracking data, a handle to the main-window and the program-name of the Game!
//
//
-bool FTNoIR_Protocol::FTCreateMapping( HANDLE handle )
+bool FTNoIR_Protocol::FTCreateMapping()
{
bool bFirst = false;
@@ -442,8 +442,8 @@ bool bFirst = false;
if (bFirst) {
memset(pMemData, 0, sizeof(FTMemMap)); // Write zero's, if first...
}
- pMemData->handle = handle; // The game uses the handle, to send a message that the Program-Name was set!
- hMainWindow = handle;
+ pMemData->handle = 0; // The game uses the handle, to send a message that the Program-Name was set!
+ hMainWindow = 0;
}
hFTMutex = CreateMutexA(NULL, false, FREETRACK_MUTEX);
}
@@ -509,5 +509,5 @@ void FTNoIR_Protocol::getNameFromGame( char *dest )
extern "C" FTNOIR_PROTOCOL_BASE_EXPORT void* CALLING_CONVENTION GetConstructor()
{
- return (IProtocol*) new FTNoIR_ProtocolDll;
+ return (IProtocol*) new FTNoIR_Protocol;
}