aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2023-02-07 01:02:30 +0000
committerGitHub <noreply@github.com>2023-02-07 01:02:30 +0000
commitb77baa4d09dae917c3fc9f9fc7d6b37c8d3c5205 (patch)
tree8f3ba581e42dab31ab4680eb21e72d02a24e985d
parent31a05c35e60b844cf806b146a4889f79272ed749 (diff)
downloadNorthstarLauncher-b77baa4d09dae917c3fc9f9fc7d6b37c8d3c5205.tar.gz
NorthstarLauncher-b77baa4d09dae917c3fc9f9fc7d6b37c8d3c5205.zip
Do not load streaming files on dedicated server (#412)
dont load streaming files on dedicated server
-rw-r--r--NorthstarDLL/core/filesystem/rpakfilesystem.cpp6
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