From a02ccdddde4495504fe11d593f3ed3fcefc00a0f Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sat, 12 Nov 2022 13:52:21 +0000 Subject: [COOP] load sp_ rpaks on dedi (#283) * load sp_ rpaks on dedi * formatting to please the formatting check gods * fix build failure * what in the formatting --- NorthstarDLL/rpakfilesystem.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NorthstarDLL/rpakfilesystem.cpp b/NorthstarDLL/rpakfilesystem.cpp index 5d5ac7ba..0fffd99b 100644 --- a/NorthstarDLL/rpakfilesystem.cpp +++ b/NorthstarDLL/rpakfilesystem.cpp @@ -206,8 +206,12 @@ int, __fastcall, (char* pPath, void* unknownSingleton, int flags, void* pCallbac // do this after custom paks load and in bShouldLoadPaks so we only ever call this on the root pakload call // todo: could probably add some way to flag custom paks to not be loaded on dedicated servers in rpak.json + + // dedicated only needs common, common_mp, common_sp, and sp_ rpaks + // sp_ 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() && (Tier0::CommandLine()->CheckParm("-nopakdedi") || - strncmp(&originalPath[0], "common", 6))) // dedicated only needs common and common_mp + strncmp(&originalPath[0], "common", 6) && strncmp(&originalPath[0], "sp_", 3))) { if (bNeedToFreePakName) delete[] pPath; -- cgit v1.2.3