aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dllmain.cpp
diff options
context:
space:
mode:
authorEmma Miler <27428383+emma-miler@users.noreply.github.com>2022-03-26 00:56:52 +0100
committerGitHub <noreply@github.com>2022-03-26 00:56:52 +0100
commitebba08beb9e3227c2b646f83745fc0ce5b142264 (patch)
tree7c78d368aa1bc674a050b6aba12340b6c1ba1b1a /NorthstarDedicatedTest/dllmain.cpp
parentde7deafc7e6ba53deec8dd3c05d2ea5e7cf42264 (diff)
downloadNorthstarLauncher-ebba08beb9e3227c2b646f83745fc0ce5b142264.tar.gz
NorthstarLauncher-ebba08beb9e3227c2b646f83745fc0ce5b142264.zip
Add version numbering to all master server requests (#113)
* Add version numbering to all master server requests * Use "+dev" for user agent if dev version instead of "-dev" * Replace "FindResource" with "FindResourceW" As per code review suggestion https://github.com/R2Northstar/NorthstarLauncher/pull/113#discussion_r834788821 * Set User-Agent in SetCommonHttpClientOptions instead of for each curl call individually As per code review suggestion https://github.com/R2Northstar/NorthstarLauncher/pull/113#discussion_r834789168 Co-authored-by: GeckoEidechse <gecko.eidechse+git@pm.me>
Diffstat (limited to 'NorthstarDedicatedTest/dllmain.cpp')
-rw-r--r--NorthstarDedicatedTest/dllmain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/dllmain.cpp b/NorthstarDedicatedTest/dllmain.cpp
index 55951b66..524235cf 100644
--- a/NorthstarDedicatedTest/dllmain.cpp
+++ b/NorthstarDedicatedTest/dllmain.cpp
@@ -41,6 +41,7 @@
#include "plugins.h"
#include "clientvideooverrides.h"
#include <string.h>
+#include "version.h"
#include "pch.h"
#include "rapidjson/document.h"
@@ -194,6 +195,7 @@ bool InitialiseNorthstar()
initialised = true;
parseConfigurables();
+ InitialiseVersion();
SetEnvironmentVariableA("OPENSSL_ia32cap", "~0x200000200000000");
curl_global_init_mem(CURL_GLOBAL_DEFAULT, _malloc_base, _free_base, _realloc_base, _strdup_base, _calloc_base);