aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/maxplayers.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 20:23:16 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 20:23:16 +0100
commit5ce8343bcced9e92ab2b3c1b80382cffa0281629 (patch)
tree95ce2dbe8dc976cab987d76f8e964a2efc6c23fd /NorthstarDedicatedTest/maxplayers.cpp
parent180470cf75f40bed9c24b22d0afd68871d40c9f3 (diff)
downloadNorthstarLauncher-5ce8343bcced9e92ab2b3c1b80382cffa0281629.tar.gz
NorthstarLauncher-5ce8343bcced9e92ab2b3c1b80382cffa0281629.zip
use lambdas for dll load callbacks so intellisense shits itself less
Diffstat (limited to 'NorthstarDedicatedTest/maxplayers.cpp')
-rw-r--r--NorthstarDedicatedTest/maxplayers.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/maxplayers.cpp b/NorthstarDedicatedTest/maxplayers.cpp
index 15846ea8..3968120a 100644
--- a/NorthstarDedicatedTest/maxplayers.cpp
+++ b/NorthstarDedicatedTest/maxplayers.cpp
@@ -110,7 +110,7 @@ bool MaxPlayersIncreaseEnabled()
return Tier0::CommandLine() && Tier0::CommandLine()->CheckParm("-experimentalmaxplayersincrease");
}
-ON_DLL_LOAD("engine.dll", MaxPlayersOverride_Engine, (HMODULE baseAddress)
+ON_DLL_LOAD("engine.dll", MaxPlayersOverride_Engine, [](HMODULE baseAddress)
{
if (!MaxPlayersIncreaseEnabled())
return;
@@ -322,7 +322,7 @@ __int64 __fastcall SendPropArray2_Hook(__int64 recvProp, int elements, int flags
return SendPropArray2_Original(recvProp, elements, flags, name, proxyFn, unk1);
}
-ON_DLL_LOAD("server.dll", MaxPlayersOverride_Server, (HMODULE baseAddress)
+ON_DLL_LOAD("server.dll", MaxPlayersOverride_Server, [](HMODULE baseAddress)
{
if (!MaxPlayersIncreaseEnabled())
return;
@@ -500,7 +500,7 @@ __int64 __fastcall RecvPropArray2_Hook(__int64 recvProp, int elements, int flags
return RecvPropArray2_Original(recvProp, elements, flags, name, proxyFn);
}
-ON_DLL_LOAD("client.dll", MaxPlayersOverride_Client, (HMODULE baseAddress)
+ON_DLL_LOAD("client.dll", MaxPlayersOverride_Client, [](HMODULE baseAddress)
{
if (!MaxPlayersIncreaseEnabled())
return;