mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-24 03:56:34 +00:00
b24123ddca
- OTM_FileHandler::Remove and OTM_TextureHandler::Remove set now the correct Reference - SingleTexture is deleted, if device is released the last time - if original texture is released the last time and it is linked with SingleTexture, SingleTexture is not released any more - texture->AddRef is now directed to the original texture (if texture was switched) - texture->Release() is now directed to the original texture (if texture is switched) improvement: - texture->Release(): if a texture is released which was switched also the fake texture is released, for that no OTM_TextureHandler FakeTextures is needed any more. - you can run the makefile with NO_INJECTION=1 and a dll without hook is compiled, copy this dll to the game directory, if you don't like to or even can't use the dll-injection over hooking.
5 lines
86 B
Modula-2
5 lines
86 B
Modula-2
LIBRARY "OTM_d3d9"
|
|
EXPORTS
|
|
MyDirect3DCreate9 @1
|
|
InstallHook @2
|
|
RemoveHook @3 |