aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/playlist.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-03 20:55:19 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-12-03 20:55:19 +0000
commit9e8232e97db1cfe9f0f9a69bdfde5048a6290df1 (patch)
treebe1324c39dd1680335f4bfaf3d1660b5d6e31514 /NorthstarDedicatedTest/playlist.cpp
parentf33bab4fb3586fd06896a7730bce8913c2616b78 (diff)
downloadNorthstarLauncher-9e8232e97db1cfe9f0f9a69bdfde5048a6290df1.tar.gz
NorthstarLauncher-9e8232e97db1cfe9f0f9a69bdfde5048a6290df1.zip
slightly awful fix for allocation issues
Diffstat (limited to 'NorthstarDedicatedTest/playlist.cpp')
-rw-r--r--NorthstarDedicatedTest/playlist.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/NorthstarDedicatedTest/playlist.cpp b/NorthstarDedicatedTest/playlist.cpp
index 1343ed40..20c76cb0 100644
--- a/NorthstarDedicatedTest/playlist.cpp
+++ b/NorthstarDedicatedTest/playlist.cpp
@@ -19,15 +19,6 @@ void SetPlaylistCommand(const CCommand& args)
SetCurrentPlaylist(args.Arg(1));
}
-void SetPlaylistVarOverrideCommand(const CCommand& args)
-{
- // this is broken lol
- if (args.ArgC() < 3)
- return;
-
- SetPlaylistVarOverride(args.Arg(1), args.Arg(2));
-}
-
char Onclc_SetPlaylistVarOverrideHook(void* a1, void* a2)
{
// the private_match playlist is the only situation where there should be any legitimate sending of this netmessage
@@ -41,7 +32,6 @@ char Onclc_SetPlaylistVarOverrideHook(void* a1, void* a2)
void InitialisePlaylistHooks(HMODULE baseAddress)
{
RegisterConCommand("setplaylist", SetPlaylistCommand, "Sets the current playlist", FCVAR_NONE);
- RegisterConCommand("setplaylistvaroverride", SetPlaylistVarOverrideCommand, "Sets a playlist var override", FCVAR_NONE);
// note: clc_SetPlaylistVarOverride is pretty insecure, since it allows for entirely arbitrary playlist var overrides to be sent to the server
// this is somewhat restricted on custom servers to prevent it being done outside of private matches, but ideally it should be disabled altogether, since the custom menus won't use it anyway
// this should only really be accepted if you want vanilla client compatibility