diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2023-02-07 01:02:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 01:02:30 +0000 |
commit | b77baa4d09dae917c3fc9f9fc7d6b37c8d3c5205 (patch) | |
tree | 8f3ba581e42dab31ab4680eb21e72d02a24e985d /NorthstarDLL | |
parent | 31a05c35e60b844cf806b146a4889f79272ed749 (diff) | |
download | NorthstarLauncher-b77baa4d09dae917c3fc9f9fc7d6b37c8d3c5205.tar.gz NorthstarLauncher-b77baa4d09dae917c3fc9f9fc7d6b37c8d3c5205.zip |
Do not load streaming files on dedicated server (#412)
dont load streaming files on dedicated server
Diffstat (limited to 'NorthstarDLL')
-rw-r--r-- | NorthstarDLL/core/filesystem/rpakfilesystem.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/NorthstarDLL/core/filesystem/rpakfilesystem.cpp b/NorthstarDLL/core/filesystem/rpakfilesystem.cpp index b46218e0..c3463781 100644 --- a/NorthstarDLL/core/filesystem/rpakfilesystem.cpp +++ b/NorthstarDLL/core/filesystem/rpakfilesystem.cpp @@ -267,6 +267,9 @@ void*, __fastcall, (const char* pPath, void* pCallback)) if (path.extension() == ".stbsp") { + if (IsDedicatedServer()) + return nullptr; + NS::log::rpak->info("LoadStreamBsp: {}", filename.string()); // resolve modded stbsp path so we can load mod stbsps @@ -279,6 +282,9 @@ void*, __fastcall, (const char* pPath, void* pCallback)) } else if (path.extension() == ".starpak") { + if (IsDedicatedServer()) + return nullptr; + // code for this is mostly stolen from above // unfortunately I can't find a way to get the rpak that is causing this function call, so I have to |