From 5612c7a3a7e38f725b17e98d17d06f146135feae Mon Sep 17 00:00:00 2001 From: Amos <48657826+Mauler125@users.noreply.github.com> Date: Wed, 12 Jan 2022 13:11:11 +0100 Subject: [PATCH] This seems no longer needed for dedicated servers Shader/texture assets are no longer loaded where the pointer parameters to the asset unloading function won't be out of scope anymore --- r5dev/rtech/rtech_game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r5dev/rtech/rtech_game.cpp b/r5dev/rtech/rtech_game.cpp index 944eb1d3..3342594b 100644 --- a/r5dev/rtech/rtech_game.cpp +++ b/r5dev/rtech/rtech_game.cpp @@ -51,10 +51,10 @@ void HRtech_AsyncLoad(std::string svPakFileName) void RTech_Game_Attach() { - DetourAttach((LPVOID*)&RTech_UnloadAsset, &HRTech_UnloadAsset); + //DetourAttach((LPVOID*)&RTech_UnloadAsset, &HRTech_UnloadAsset); } void RTech_Game_Detach() { - DetourAttach((LPVOID*)&RTech_UnloadAsset, &HRTech_UnloadAsset); + //DetourAttach((LPVOID*)&RTech_UnloadAsset, &HRTech_UnloadAsset); }