Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move core/convar/ to tier1/ #644

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions primedev/Northstar.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ add_library(
"client/rejectconnectionfixes.cpp"
"config/profile.cpp"
"config/profile.h"
"core/convar/concommand.cpp"
"core/convar/concommand.h"
"core/convar/convar.cpp"
"core/convar/convar.h"
"core/convar/cvar.cpp"
"core/convar/cvar.h"
"core/filesystem/filesystem.cpp"
"core/filesystem/filesystem.h"
"core/filesystem/rpakfilesystem.cpp"
Expand Down Expand Up @@ -152,6 +146,12 @@ add_library(
"squirrel/squirrelautobind.h"
"squirrel/squirrelclasstypes.h"
"squirrel/squirreldatatypes.h"
"tier1/cmd.cpp"
"tier1/cmd.h"
"tier1/convar.cpp"
"tier1/convar.h"
"tier1/cvar.cpp"
"tier1/cvar.h"
"util/printcommands.cpp"
"util/printcommands.h"
"util/printmaps.cpp"
Expand Down
2 changes: 1 addition & 1 deletion primedev/client/audio.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "audio.h"
#include "dedicated/dedicated.h"
#include "core/convar/convar.h"
#include "tier1/convar.h"

#include "rapidjson/error/en.h"
#include <fstream>
Expand Down
4 changes: 2 additions & 2 deletions primedev/client/chatcommand.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
#include "tier1/convar.h"
#include "tier1/cmd.h"
#include "localchatwriter.h"

// note: isIngameChat is an int64 because the whole register the arg is stored in needs to be 0'd out to work
Expand Down
2 changes: 1 addition & 1 deletion primedev/client/clientauthhooks.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "masterserver/masterserver.h"
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "client/r2client.h"
#include "core/vanilla.h"

Expand Down
2 changes: 1 addition & 1 deletion primedev/client/clientruihooks.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "core/convar/convar.h"
#include "tier1/convar.h"

AUTOHOOK_INIT()

Expand Down
2 changes: 1 addition & 1 deletion primedev/client/debugoverlay.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "debugoverlay.h"

#include "dedicated/dedicated.h"
#include "core/convar/cvar.h"
#include "tier1/cvar.h"
#include "core/math/vector.h"
#include "server/ai_helper.h"

Expand Down
2 changes: 1 addition & 1 deletion primedev/client/demofixes.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "core/convar/convar.h"
#include "tier1/convar.h"

ON_DLL_LOAD_CLIENT("engine.dll", EngineDemoFixes, (CModule module))
{
Expand Down
2 changes: 1 addition & 1 deletion primedev/client/latencyflex.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "core/convar/convar.h"
#include "tier1/convar.h"

AUTOHOOK_INIT()

Expand Down
2 changes: 2 additions & 0 deletions primedev/dedicated/dedicatedlogtoclient.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "dedicatedlogtoclient.h"

#include "tier1/convar.h"
#include "engine/r2engine.h"

void (*CGameClient__ClientPrintf)(CBaseClient* pClient, const char* fmt, ...);
Expand Down
2 changes: 1 addition & 1 deletion primedev/dedicated/dedicatedlogtoclient.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include "logging/logging.h"
#include "core/convar/convar.h"
#include "tier1/convar.h"

class DedicatedServerLogToClientSink : public CustomSink
{
Expand Down
2 changes: 1 addition & 1 deletion primedev/engine/host.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "mods/modmanager.h"
#include "util/printcommands.h"
#include "util/printmaps.h"
Expand Down
2 changes: 2 additions & 0 deletions primedev/engine/r2engine.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#pragma once

#include "tier1/cmd.h"
#include "shared/keyvalues.h"

// Cbuf
Expand Down
4 changes: 2 additions & 2 deletions primedev/logging/logging.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "logging.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
#include "tier1/convar.h"
#include "tier1/cmd.h"
#include "config/profile.h"
#include "core/tier0.h"
#include "util/version.h"
Expand Down
4 changes: 2 additions & 2 deletions primedev/logging/loghooks.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "logging.h"
#include "loghooks.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
#include "tier1/convar.h"
#include "tier1/cmd.h"
#include "core/math/bitbuf.h"
#include "config/profile.h"
#include "core/tier0.h"
Expand Down
4 changes: 2 additions & 2 deletions primedev/logging/sourceconsole.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "sourceconsole.h"
#include "core/sourceinterface.h"
#include "core/convar/concommand.h"
#include "tier1/cmd.h"
#include "util/printcommands.h"

SourceInterface<CGameConsole>* g_pSourceGameConsole;
Expand Down
2 changes: 1 addition & 1 deletion primedev/masterserver/masterserver.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "masterserver/masterserver.h"
#include "core/convar/concommand.h"
#include "tier1/cmd.h"
#include "shared/playlist.h"
#include "server/auth/serverauthentication.h"
#include "core/tier0.h"
Expand Down
2 changes: 1 addition & 1 deletion primedev/masterserver/masterserver.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "server/serverpresence.h"
#include <winsock2.h>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions primedev/mods/modmanager.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "modmanager.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
#include "tier1/convar.h"
#include "tier1/cmd.h"
#include "client/audio.h"
#include "masterserver/masterserver.h"
#include "core/filesystem/filesystem.h"
Expand Down
2 changes: 1 addition & 1 deletion primedev/mods/modmanager.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "core/memalloc.h"
#include "squirrel/squirrel.h"

Expand Down
2 changes: 1 addition & 1 deletion primedev/plugins/pluginmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <regex>
#include "plugins.h"
#include "config/profile.h"
#include "core/convar/concommand.h"
#include "tier1/cmd.h"

PluginManager* g_pPluginManager;

Expand Down
4 changes: 2 additions & 2 deletions primedev/scripts/client/scriptservertoclientstringcommand.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "squirrel/squirrel.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
#include "tier1/convar.h"
#include "tier1/cmd.h"

void ConCommand_ns_script_servertoclientstringcommand(const CCommand& arg)
{
Expand Down
2 changes: 1 addition & 1 deletion primedev/scripts/scriptdatatables.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "squirrel/squirrel.h"
#include "core/filesystem/rpakfilesystem.h"
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "dedicated/dedicated.h"
#include "core/filesystem/filesystem.h"
#include "core/math/vector.h"
Expand Down
2 changes: 1 addition & 1 deletion primedev/server/alltalk.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "engine/r2engine.h"

size_t __fastcall ShouldAllowAlltalk()
Expand Down
2 changes: 1 addition & 1 deletion primedev/server/auth/bansystem.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "bansystem.h"
#include "serverauthentication.h"
#include "core/convar/concommand.h"
#include "tier1/cmd.h"
#include "server/r2server.h"
#include "engine/r2engine.h"
#include "client/r2client.h"
Expand Down
6 changes: 3 additions & 3 deletions primedev/server/auth/serverauthentication.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include "serverauthentication.h"
#include "shared/exploit_fixes/ns_limits.h"
#include "core/convar/cvar.h"
#include "core/convar/convar.h"
#include "tier1/cvar.h"
#include "tier1/convar.h"
#include "masterserver/masterserver.h"
#include "server/serverpresence.h"
#include "engine/hoststate.h"
#include "bansystem.h"
#include "core/convar/concommand.h"
#include "tier1/cmd.h"
#include "dedicated/dedicated.h"
#include "config/profile.h"
#include "core/tier0.h"
Expand Down
2 changes: 1 addition & 1 deletion primedev/server/auth/serverauthentication.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "engine/r2engine.h"
#include <unordered_map>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion primedev/server/buildainfile.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "engine/hoststate.h"
#include "engine/r2engine.h"

Expand Down
2 changes: 1 addition & 1 deletion primedev/server/servernethooks.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include "engine/r2engine.h"
#include "shared/exploit_fixes/ns_limits.h"
#include "masterserver/masterserver.h"
Expand Down
2 changes: 1 addition & 1 deletion primedev/server/serverpresence.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "serverpresence.h"
#include "shared/playlist.h"
#include "core/tier0.h"
#include "core/convar/convar.h"
#include "tier1/convar.h"

#include <regex>

Expand Down
2 changes: 1 addition & 1 deletion primedev/server/serverpresence.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include "core/convar/convar.h"
#include "tier1/convar.h"

struct ServerPresence
{
Expand Down
2 changes: 1 addition & 1 deletion primedev/shared/exploit_fixes/exploitfixes.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "core/convar/cvar.h"
#include "tier1/cvar.h"
#include "ns_limits.h"
#include "dedicated/dedicated.h"
#include "core/tier0.h"
Expand Down
2 changes: 1 addition & 1 deletion primedev/shared/exploit_fixes/ns_limits.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include "engine/r2engine.h"
#include "core/convar/convar.h"
#include "tier1/convar.h"
#include <unordered_map>

struct PlayerLimitData
Expand Down
2 changes: 1 addition & 1 deletion primedev/shared/misccommands.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "misccommands.h"
#include "core/convar/concommand.h"
#include "tier1/cmd.h"
#include "shared/playlist.h"
#include "engine/r2engine.h"
#include "client/r2client.h"
Expand Down
4 changes: 2 additions & 2 deletions primedev/shared/playlist.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "playlist.h"
#include "core/convar/concommand.h"
#include "core/convar/convar.h"
#include "tier1/cmd.h"
#include "tier1/convar.h"
#include "squirrel/squirrel.h"
#include "engine/hoststate.h"
#include "engine/r2engine.h"
Expand Down
2 changes: 1 addition & 1 deletion primedev/squirrel/squirrel.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "squirrel.h"
#include "mods/modsavefiles.h"
#include "logging/logging.h"
#include "core/convar/concommand.h"
#include "tier1/cmd.h"
#include "mods/modmanager.h"
#include "dedicated/dedicated.h"
#include "engine/r2engine.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "concommand.h"
#include "tier1/cmd.h"
#include "shared/misccommands.h"
#include "engine/r2engine.h"

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion primedev/core/convar/convar.h → primedev/tier1/convar.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "core/sourceinterface.h"
#include "core/math/color.h"
#include "cvar.h"
#include "concommand.h"
#include "tier1/cmd.h"

// taken directly from iconvar.h

Expand Down
2 changes: 1 addition & 1 deletion primedev/core/convar/cvar.cpp → primedev/tier1/cvar.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "cvar.h"
#include "convar.h"
#include "concommand.h"
#include "tier1/cmd.h"

//-----------------------------------------------------------------------------
// Purpose: returns all ConVars
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions primedev/util/printcommands.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "printcommands.h"
#include "core/convar/cvar.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
#include "tier1/cvar.h"
#include "tier1/convar.h"
#include "tier1/cmd.h"

void PrintCommandHelpDialogue(const ConCommandBase* command, const char* name)
{
Expand Down
2 changes: 1 addition & 1 deletion primedev/util/printcommands.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#pragma once
#include "core/convar/concommand.h"
#include "tier1/cmd.h"

void PrintCommandHelpDialogue(const ConCommandBase* command, const char* name);
void TryPrintCvarHelpForCommand(const char* pCommand);
Expand Down
4 changes: 2 additions & 2 deletions primedev/util/printmaps.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "printmaps.h"
#include "core/convar/convar.h"
#include "core/convar/concommand.h"
#include "tier1/convar.h"
#include "tier1/cmd.h"
#include "mods/modmanager.h"
#include "core/tier0.h"
#include "engine/r2engine.h"
Expand Down
Loading