mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-22 02:19:31 +00:00
b2bade7ff8
- append '\0' at the end of game name (dll injection) - Release() fake texture (if force reload) instead of calling RemoveTexture(..) Improvements: - template support, you can now have more than one template set one of them as default. - update function will only update the texture if this is needed or the reload button is pressed. - textures will also be removed, if they are removed from the package list.
80 lines
2.3 KiB
Plaintext
80 lines
2.3 KiB
Plaintext
ifdef NO_INJECTION
|
|
|
|
ifdef ALPHA
|
|
precompiler_flag = /D "ALPHA" /D "NO_INJECTION"
|
|
else
|
|
precompiler_flag = /D "NO_INJECTION"
|
|
endif
|
|
|
|
def_file = /DEF:"OTM_DX9_dll_NO_INJECTION.def"
|
|
obj_suff = NO_INJECTION.obj
|
|
dll = d3d9.dll
|
|
|
|
else
|
|
|
|
ifdef ALPHA
|
|
precompiler_flag = /D "ALPHA"
|
|
else
|
|
precompiler_flag =
|
|
endif
|
|
|
|
def_file = /DEF:"OTM_DX9_dll.def"
|
|
obj_suff = obj
|
|
dll = OTM_d3d9.dll
|
|
endif
|
|
|
|
|
|
CXX = cl
|
|
CLINK = link.exe
|
|
DEFINES = /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D "_WINDLL" /D "_MBCS"
|
|
CFLAGS = /I "C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include" /nologo /W3 /WX- /O2 ${DEFINES} ${precompiler_flag} /Gm- /EHsc /MT /GS /fp:precise /Zc:wchar_t
|
|
LFLAGS = /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86" /DLL "Winmm.lib" "d3dx9.lib" "user32.lib" "Kernel32.lib" ${def_file} /SUBSYSTEM:WINDOWS /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE:NO /NXCOMPAT:NO /MACHINE:X86
|
|
|
|
obj = obj
|
|
bin = bin
|
|
|
|
objects = ${obj}\OTM_DX9_dll.${obj_suff} \
|
|
${obj}\OTM_IDirect3D9.${obj_suff} \
|
|
${obj}\OTM_IDirect3DDevice9.${obj_suff} \
|
|
${obj}\OTM_IDirect3DTexture9.${obj_suff} \
|
|
${obj}\OTM_ArrayHandler.${obj_suff} \
|
|
${obj}\OTM_TextureClient.${obj_suff} \
|
|
${obj}\OTM_TextureServer.${obj_suff}
|
|
|
|
headers = OTM_Main.h \
|
|
OTM_Defines.h \
|
|
OTM_DX9_dll.h \
|
|
OTM_IDirect3D9.h \
|
|
OTM_IDirect3DDevice9.h \
|
|
OTM_IDirect3DTexture9.h \
|
|
OTM_ArrayHandler.h \
|
|
OTM_TextureClient.h \
|
|
OTM_TextureServer.h
|
|
|
|
${bin}\d3d9.dll: ${objects}
|
|
${CLINK} ${LFLAGS} ${objects} /OUT:${bin}\${dll}
|
|
copy ${bin}\${dll} ..\OTM_GUI\bin\${dll}
|
|
|
|
${obj}\OTM_DX9_dll.${obj_suff}: OTM_DX9_dll.cpp ${headers}
|
|
${CXX} ${CFLAGS} /c $< /Fo$@
|
|
|
|
${obj}\OTM_IDirect3D9.${obj_suff}: OTM_IDirect3D9.cpp ${headers}
|
|
${CXX} ${CFLAGS} /c $< /Fo$@
|
|
|
|
${obj}\OTM_IDirect3DDevice9.${obj_suff}: OTM_IDirect3DDevice9.cpp ${headers}
|
|
${CXX} ${CFLAGS} /c $< /Fo$@
|
|
|
|
${obj}\OTM_IDirect3DTexture9.${obj_suff}: OTM_IDirect3DTexture9.cpp ${headers}
|
|
${CXX} ${CFLAGS} /c $< /Fo$@
|
|
|
|
${obj}\OTM_ArrayHandler.${obj_suff}: OTM_ArrayHandler.cpp ${headers}
|
|
${CXX} ${CFLAGS} /c $< /Fo$@
|
|
|
|
${obj}\OTM_TextureClient.${obj_suff}: OTM_TextureClient.cpp ${headers}
|
|
${CXX} ${CFLAGS} /c $< /Fo$@
|
|
|
|
${obj}\OTM_TextureServer.${obj_suff}: OTM_TextureServer.cpp ${headers}
|
|
${CXX} ${CFLAGS} /c $< /Fo$@
|
|
|
|
clean:
|
|
del ${objects} ${bin}\${dll} |