aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dllmain.cpp
diff options
context:
space:
mode:
authorHappyDOGE <28511119+HappyDOGE@users.noreply.github.com>2021-12-27 14:53:25 +0300
committerHappyDOGE <28511119+HappyDOGE@users.noreply.github.com>2021-12-27 14:53:25 +0300
commit07d508ed4ebcd247250b8a983e5c85dffee4d5ef (patch)
tree5903cd26dcfac89acfc01ff81a637fcbf816da9f /NorthstarDedicatedTest/dllmain.cpp
parent81ae893c31fe462650b9793076df2467fd897181 (diff)
downloadNorthstarLauncher-07d508ed4ebcd247250b8a983e5c85dffee4d5ef.tar.gz
NorthstarLauncher-07d508ed4ebcd247250b8a983e5c85dffee4d5ef.zip
initial work on maxplayers
Diffstat (limited to 'NorthstarDedicatedTest/dllmain.cpp')
-rw-r--r--NorthstarDedicatedTest/dllmain.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/dllmain.cpp b/NorthstarDedicatedTest/dllmain.cpp
index 212b5711..c8f29550 100644
--- a/NorthstarDedicatedTest/dllmain.cpp
+++ b/NorthstarDedicatedTest/dllmain.cpp
@@ -25,6 +25,7 @@
#include "scriptmainmenupromos.h"
#include "miscclientfixes.h"
#include "memalloc.h"
+#include "maxplayers.h"
bool initialised = false;
@@ -116,6 +117,11 @@ void InitialiseNorthstar()
AddDllLoadCallback("filesystem_stdio.dll", InitialiseFilesystem);
AddDllLoadCallback("engine.dll", InitialiseKeyValues);
+ // maxplayers increase
+ AddDllLoadCallback("engine.dll", InitialiseMaxPlayersOverride_Engine);
+ AddDllLoadCallback("client.dll", InitialiseMaxPlayersOverride_Client, true);
+ AddDllLoadCallback("server.dll", InitialiseMaxPlayersOverride_Server, true);
+
// mod manager after everything else
AddDllLoadCallback("engine.dll", InitialiseModManager);
} \ No newline at end of file