summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_sc
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-20 03:24:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-20 03:26:28 +0200
commitd9746e7d4c4f7ed687c23b746914a9c5af8e9b49 (patch)
tree07572b82a871263bc477c21eba2c688320ce8d21 /ftnoir_protocol_sc
parent6186f49000e6895b03661cd01c3f1c9c5950577a (diff)
all: update copyright where appropriate
Diffstat (limited to 'ftnoir_protocol_sc')
-rw-r--r--ftnoir_protocol_sc/ftnoir_protocol_sc.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
index 5d7ab778..0c6cb486 100644
--- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
+++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
@@ -1,9 +1,13 @@
-/* Copyright (c) 2015 Stanislaw Halik <sthalik@misaki.pl>
- * Copyright (c) 2015 Wim Vriend
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
+/* Homepage http://facetracknoir.sourceforge.net/home/default.htm *
+ * *
+ * ISC License (ISC) *
+ * *
+ * Copyright (c) 2015, Wim Vriend
+ * Copyright (c) 2014, Stanislaw Halik <sthalik@misaki.pl>
+ * *
+ * Permission to use, copy, modify, and/or distribute this software for any *
+ * purpose with or without fee is hereby granted, provided that the above *
+ * copyright notice and this permission notice appear in all copies. *
*/
#include "ftnoir_protocol_sc.h"
#include "opentrack/plugin-api.hpp"
@@ -80,7 +84,7 @@ public:
# define PREFIX ""
#else
# define PREFIX "lib"
-#endif
+#endif
QString path = QCoreApplication::applicationDirPath() + "/" PREFIX "opentrack-proto-simconnect.dll";
QByteArray name = QFile::encodeName(path);
actx.lpSource = name.constData();
@@ -113,11 +117,11 @@ private:
};
bool FTNoIR_Protocol::correct()
-{
- if (!SCClientLib.isLoaded())
+{
+ if (!SCClientLib.isLoaded())
{
ActivationContext ctx(142 + static_cast<int>(s.sxs_manifest));
-
+
if (ctx.is_ok())
{
SCClientLib.setFileName("SimConnect.dll");
@@ -171,7 +175,7 @@ void FTNoIR_Protocol::handle()
void CALLBACK FTNoIR_Protocol::processNextSimconnectEvent(SIMCONNECT_RECV* pData, DWORD, void *self_)
{
FTNoIR_Protocol& self = *reinterpret_cast<FTNoIR_Protocol*>(self_);
-
+
switch(pData->dwID)
{
default: