:28.708KB : :1 :2020-12-12 18:08:56
OpenAdapter = GetProcAddress (LoadLibraryA (“nvd3dum.dll”), “OpenAdapter”) ' 获取NVIDIA卡函数地址
.如果真 (OpenAdapter = 0)
OpenAdapter = GetProcAddress (LoadLibraryA (“aticfx32.dll”), “OpenAdapter”) ' 获取AMD卡函数地址
.如果真结束
.如果真 (OpenAdapter = 0)
OpenAdapter = GetProcAddress (LoadLibraryA (“igdumd32.dll”), “OpenAdapter”) ' 获取Intel卡函数地址[win7]
.如果真结束
.如果真 (OpenAdapter = 0)
OpenAdapter = GetProcAddress (LoadLibraryA (“igdumdim32.dll”), “OpenAdapter”) ' 获取Intel卡函数地址[win8]
.如果真结束
.如果真 (OpenAdapter ≠ 0 且 OldOpenAdapter.Pointer = 0)
OldOpenAdapter.Pointer = OpenAdapter
OldOpenAdapter.Subroutine = 到整数 (&WarpOpenAdapter)
Hook_NOP_5 (OldOpenAdapter.Pointer, OldOpenAdapter.Subroutine, OldOpenAdapter.Data, OldOpenAdapter.Call)
.如果真结束
指针 = Direct3DCreate9 (32)
12-12完美支持所有D3D游戏绘制模块及调用