diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2010-12-18 11:43:47 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2010-12-18 11:43:47 +0000 |
commit | 9e0250dcad1ef02dc6cba1315fe37c8c2329769a (patch) | |
tree | 44978da1243d8c4dbc91e35ad6d00f697b1107c3 /FaceTrackNoIR/FTServer.cpp | |
parent | 4c04337f46470180312812634beb0e39a04bcf9f (diff) |
Base Class for Game protocol
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@30 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FTServer.cpp')
-rw-r--r-- | FaceTrackNoIR/FTServer.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/FaceTrackNoIR/FTServer.cpp b/FaceTrackNoIR/FTServer.cpp index 2bd3d5f5..27808343 100644 --- a/FaceTrackNoIR/FTServer.cpp +++ b/FaceTrackNoIR/FTServer.cpp @@ -154,8 +154,6 @@ void FTServer::run() { //
bool FTServer::FTCreateMapping(HANDLE handle)
{
- bool result;
-
qDebug() << "FTCreateMapping says: Starting Function";
//
@@ -194,8 +192,7 @@ bool FTServer::FTCreateMapping(HANDLE handle) return false;
}
- result = false;
-return result;
+ return true;
}
//
@@ -215,7 +212,7 @@ void FTServer::FTDestroyMapping() //
// Get the program-name from the client (Game!).
//
-QString FTServer::FTGetProgramName() {
+QString FTServer::GetProgramName() {
QString *str;
str = new QString(pMemData->ProgramName);
@@ -227,7 +224,7 @@ QString *str; // Check if the Client DLL exists and load it (to test it), if so.
// Returns 'true' if all seems OK.
//
-bool FTServer::FTCheckClientDLL()
+bool FTServer::checkServerInstallationOK( HANDLE handle )
{
QSettings settings("Freetrack", "FreetrackClient"); // Registry settings (in HK_USER)
QString aLocation; // Location of Client DLL
@@ -281,7 +278,7 @@ bool FTServer::FTCheckClientDLL() } catch(...) {
settings.~QSettings();
}
- return true;
+ return FTCreateMapping( handle );
}
//END
|