Skip to content

Commit

Permalink
Hash command line parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Wend4r authored Oct 3, 2024
1 parent f647adf commit 2178b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/provider/source2/provider_source2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <KeyValues.h>
#include <filesystem.h>
#include <iserver.h>

#include <tier0/utlstringtoken.h>

static Source2Provider g_Source2Provider;

Expand Down Expand Up @@ -247,7 +247,7 @@ bool Source2Provider::Hook_AllowDedicatedServers(EUniverse universe) const

const char* Source2Provider::GetCommandLineValue(const char* key, const char* defval)
{
return CommandLine()->ParmValue(key, defval);
return CommandLine()->ParmValue(MakeStringToken(key), defval);
}

void Source2Provider::ConsolePrint(const char* str)
Expand Down

0 comments on commit 2178b5a

Please sign in to comment.