aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-11-05 21:22:43 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-11-05 21:22:43 +0000
commit3d4eb42b4aaf89a4f5f3e74cb50f1fa557b272ee (patch)
tree5832fe2ee5f8e9334196e9f67cee93fb382ef1a7 /NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
parentce9cb0134fefaa2bf5a3da0f9de15f013ab7dd27 (diff)
downloadNorthstarLauncher-3d4eb42b4aaf89a4f5f3e74cb50f1fa557b272ee.tar.gz
NorthstarLauncher-3d4eb42b4aaf89a4f5f3e74cb50f1fa557b272ee.zip
small dedi changes
Diffstat (limited to 'NorthstarDedicatedTest/dedicatedmaterialsystem.cpp')
-rw-r--r--NorthstarDedicatedTest/dedicatedmaterialsystem.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
index 327f2c1f..3c96ef22 100644
--- a/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
+++ b/NorthstarDedicatedTest/dedicatedmaterialsystem.cpp
@@ -13,6 +13,7 @@ void InitialiseDedicatedMaterialSystem(HMODULE baseAddress)
// Sleep(100);
// not using these for now since they're related to nopping renderthread/gamewindow i.e. very hard
+ // we use -noshaderapi instead now
//{
// // function that launches renderthread
// char* ptr = (char*)baseAddress + 0x87047;
@@ -63,7 +64,7 @@ void InitialiseDedicatedMaterialSystem(HMODULE baseAddress)
*(ptr + 4) = (char)0x90;
}
- // these don't work, they cause game to hang on rpak init, needs reworking
+ // these don't fully work, they cause game to hang on rpak init, needs reworking
{
// materialsystem rpak type: texture
char* ptr = (char*)baseAddress + 0x2B3A;
@@ -152,6 +153,8 @@ void* RegisterRpakTypeHook(RpakTypeDefinition* rpakStruct, unsigned int a1, unsi
void InitialiseDedicatedRtechGame(HMODULE baseAddress)
{
+ // potentially do this somewhere other than dedicated stuff if it's going to be used in non-dedi
+
HookEnabler hook;
ENABLER_CREATEHOOK(hook, (char*)GetModuleHandleA("rtech_game.dll") + 0x7BE0, &RegisterRpakTypeHook, reinterpret_cast<LPVOID*>(&RegisterRpakType));