diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-09-20 10:57:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 11:57:57 +0200 |
commit | 122f84f14d6177cc4c78b817ab71712185e0b47f (patch) | |
tree | 20c8ebcdddcdba06161da89ba5710ef237311f3a /NorthstarDLL/playlist.cpp | |
parent | 5dd0949213203572109d95daa934d113832525a7 (diff) | |
download | NorthstarLauncher-122f84f14d6177cc4c78b817ab71712185e0b47f.tar.gz NorthstarLauncher-122f84f14d6177cc4c78b817ab71712185e0b47f.zip |
Standardise concommand func naming in C++ (#277)
part of refactor
Diffstat (limited to 'NorthstarDLL/playlist.cpp')
-rw-r--r-- | NorthstarDLL/playlist.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/NorthstarDLL/playlist.cpp b/NorthstarDLL/playlist.cpp index 21374607..f3e17a32 100644 --- a/NorthstarDLL/playlist.cpp +++ b/NorthstarDLL/playlist.cpp @@ -19,7 +19,7 @@ GetCurrentPlaylistVarType GetCurrentPlaylistVarOriginal; ConVar* Cvar_ns_use_clc_SetPlaylistVarOverride; -void SetPlaylistCommand(const CCommand& args) +void ConCommand_playlist(const CCommand& args) { if (args.ArgC() < 2) return; @@ -27,7 +27,7 @@ void SetPlaylistCommand(const CCommand& args) SetCurrentPlaylist(args.Arg(1)); } -void SetPlaylistVarOverrideCommand(const CCommand& args) +void ConCommand_setplaylistvaroverride(const CCommand& args) { if (args.ArgC() < 3) return; @@ -74,8 +74,8 @@ int GetCurrentGamemodeMaxPlayersHook() void InitialisePlaylistHooks(HMODULE baseAddress) { - RegisterConCommand("setplaylist", SetPlaylistCommand, "Sets the current playlist", FCVAR_NONE); - RegisterConCommand("setplaylistvaroverrides", SetPlaylistVarOverrideCommand, "sets a playlist var override", FCVAR_NONE); + RegisterConCommand("setplaylist", ConCommand_playlist, "Sets the current playlist", FCVAR_NONE); + RegisterConCommand("setplaylistvaroverrides", ConCommand_setplaylistvaroverride, "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 |