aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-02-17 08:04:02 -0500
committerGitHub <noreply@github.com>2022-02-17 13:04:02 +0000
commitf3c8dba536329e2907e12b80f6774467d93779cf (patch)
tree3951d1fc468f4c952f87f836bdf97c301eb18825 /NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
parent1a7b41cc722c05eb97006d29e124c17559c45324 (diff)
downloadNorthstarLauncher-f3c8dba536329e2907e12b80f6774467d93779cf.tar.gz
NorthstarLauncher-f3c8dba536329e2907e12b80f6774467d93779cf.zip
Implement stub loading (#81)
When starting the dedicated server from NorthstarLauncher, always default to loading the d3d11 and gfsdk stubs from `bin/x64_dedi`. If the stubs fail to load or `-nostubs` is specified, the launcher reverts to the old behaviour of using the GPU, or WARP if `-softwared3d11` is specified. updates #79
Diffstat (limited to 'NorthstarDedicatedTest/dedicatedmaterialsystem.cpp')
-rw-r--r--NorthstarDedicatedTest/dedicatedmaterialsystem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
index 5db3d629..0689bc74 100644
--- a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
+++ b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
@@ -20,6 +20,7 @@ HRESULT __stdcall D3D11CreateDeviceHook(
// atm, i think the play might be to run d3d in software, and then just stub out any calls that allocate memory/use alot of resources
// (e.g. createtexture and that sorta thing)
+ // note: this has been succeeded by the d3d11 and gfsdk stubs, and is only being kept around for posterity and as a fallback option
if (CommandLine()->CheckParm("-softwared3d11"))
DriverType = 5; // D3D_DRIVER_TYPE_WARP