Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames committed Dec 18, 2023
1 parent e073080 commit 6571524
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
2 changes: 0 additions & 2 deletions NorthstarDLL/core/filesystem/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@

AUTOHOOK_INIT()


bool bReadingOriginalFile = false;
std::string sCurrentModPath;

ConVar* Cvar_ns_fs_log_reads;


SourceInterface<IFileSystem>* g_pFilesystem;

std::string ReadVPKFile(const char* path)
Expand Down
4 changes: 2 additions & 2 deletions NorthstarDLL/core/filesystem/rpakfilesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ int, __fastcall, (char* pPath, void* unknownSingleton, int flags, void* pCallbac
// dedicated only needs common, common_mp, common_sp, and sp_<map> rpaks
// sp_<map> rpaks contain tutorial ghost data
// sucks to have to load the entire rpak for that but sp was never meant to be done on dedi
if (IsDedicatedServer() && (CommandLine()->CheckParm("-nopakdedi") ||
strncmp(&originalPath[0], "common", 6) && strncmp(&originalPath[0], "sp_", 3)))
if (IsDedicatedServer() &&
(CommandLine()->CheckParm("-nopakdedi") || strncmp(&originalPath[0], "common", 6) && strncmp(&originalPath[0], "sp_", 3)))
{
if (bNeedToFreePakName)
delete[] pPath;
Expand Down
4 changes: 2 additions & 2 deletions NorthstarDLL/core/tier0.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class IMemAlloc
{
public:
public:
struct VTable
{
void* unknown[1]; // alloc debug
Expand All @@ -25,7 +25,7 @@ class IMemAlloc

class CCommandLine
{
public:
public:
// based on the defs in the 2013 source sdk, but for some reason has an extra function (may be another CreateCmdLine overload?)
// these seem to line up with what they should be though
virtual void CreateCmdLine(const char* commandline) = 0;
Expand Down
4 changes: 1 addition & 3 deletions NorthstarDLL/engine/hoststate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

AUTOHOOK_INIT()


CHostState* g_pHostState;

std::string sLastMode;
Expand All @@ -30,8 +29,7 @@ void ServerStartingOrChangingMap()
memset(commandBuf, 0, sizeof(commandBuf));
CCommand tempCommand = *(CCommand*)&commandBuf;
if (sLastMode.length() &&
CCommand__Tokenize(
tempCommand, fmt::format("exec server/cleanup_gamemode_{}", sLastMode).c_str(), cmd_source_t::kCommandSrcCode))
CCommand__Tokenize(tempCommand, fmt::format("exec server/cleanup_gamemode_{}", sLastMode).c_str(), cmd_source_t::kCommandSrcCode))
_Cmd_Exec_f(tempCommand, false, false);

memset(commandBuf, 0, sizeof(commandBuf));
Expand Down
2 changes: 1 addition & 1 deletion NorthstarDLL/engine/r2engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ enum class EngineState_t

class CEngine
{
public:
public:
virtual void unknown() = 0; // unsure if this is where
virtual bool Load(bool dedicated, const char* baseDir) = 0;
virtual void Unload() = 0;
Expand Down

0 comments on commit 6571524

Please sign in to comment.