improvement

This commit is contained in:
2026-07-08 19:11:56 +03:00
parent d2ef40e0bd
commit 78d92a3c0f
2 changed files with 27 additions and 28 deletions
+4 -5
View File
@@ -449,9 +449,8 @@ BOOL WINAPI DllMain(HINSTANCE h_instance, DWORD reason, LPVOID)
if (reason == DLL_PROCESS_ATTACH)
{
DisableThreadLibraryCalls(h_instance);
CreateThread(
nullptr, 0,
[](LPVOID) -> DWORD
std::thread(
[]()
{
while (!GetModuleHandle("d3d12.dll"))
Sleep(100);
@@ -462,8 +461,8 @@ BOOL WINAPI DllMain(HINSTANCE h_instance, DWORD reason, LPVOID)
mgr.set_on_execute_command_lists(on_execute_command_lists);
std::ignore = mgr.hook_dx12();
return 0;
},
nullptr, 0, nullptr);
})
.detach();
}
else if (reason == DLL_PROCESS_DETACH)
{