aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2022-11-12 13:52:21 +0000
committerGitHub <noreply@github.com>2022-11-12 13:52:21 +0000
commita02ccdddde4495504fe11d593f3ed3fcefc00a0f (patch)
tree435bd09d8a956abb7690489ecb8872498e1f9f0e
parent3514e4478ae2523df882721a0a22d47d1ced99c3 (diff)
downloadNorthstarLauncher-a02ccdddde4495504fe11d593f3ed3fcefc00a0f.tar.gz
NorthstarLauncher-a02ccdddde4495504fe11d593f3ed3fcefc00a0f.zip
[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
-rw-r--r--NorthstarDLL/rpakfilesystem.cpp6
1 files changed, 5 insertions, 1 deletions
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_<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() && (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;