aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dedicated.cpp
diff options
context:
space:
mode:
authorp0358 <p0358@users.noreply.github.com>2021-12-29 05:48:33 +0100
committerp0358 <p0358@users.noreply.github.com>2021-12-29 05:48:33 +0100
commit8a1a2e97624d15617197248a5e292c5ead5e74a2 (patch)
treed236b5bd3c21db674c784239beb2404273498887 /NorthstarDedicatedTest/dedicated.cpp
parent2bb9e5b29ab08062614b2d52c430f9097bf2106f (diff)
downloadNorthstarLauncher-8a1a2e97624d15617197248a5e292c5ead5e74a2.tar.gz
NorthstarLauncher-8a1a2e97624d15617197248a5e292c5ead5e74a2.zip
add launcher.dll proxy option
Diffstat (limited to 'NorthstarDedicatedTest/dedicated.cpp')
-rw-r--r--NorthstarDedicatedTest/dedicated.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/dedicated.cpp b/NorthstarDedicatedTest/dedicated.cpp
index 83a9950a..e628a011 100644
--- a/NorthstarDedicatedTest/dedicated.cpp
+++ b/NorthstarDedicatedTest/dedicated.cpp
@@ -6,7 +6,8 @@
bool IsDedicated()
{
- return CommandLine()->CheckParm("-dedicated");
+ //return CommandLine()->CheckParm("-dedicated");
+ return strstr(GetCommandLineA(), "-dedicated");
}
// CDedidcatedExports defs
@@ -209,7 +210,7 @@ void InitialiseDedicated(HMODULE engineAddress)
TempReadWrite rw(ptr);
// remove call to Shader_Connect
- *ptr = 0x90;
+ *ptr = (char)0x90;
*(ptr + 1) = (char)0x90;
*(ptr + 2) = (char)0x90;
*(ptr + 3) = (char)0x90;