Merge pull request #281 from oneechanhax/master
CSS support fix + gcc stuff
This commit is contained in:
commit
e9d9f328ef
1
build-debug-css
Executable file
1
build-debug-css
Executable file
@ -0,0 +1 @@
|
||||
make -j4 GAME=css BUILD_DEBUG=1
|
2
makefile
2
makefile
@ -51,7 +51,7 @@ RES_DIR=res
|
||||
OUT_DIR=bin
|
||||
TARGET = $(OUT_DIR)/$(OUT_NAME)
|
||||
|
||||
INCLUDES=-Iucccccp -isystem$(SSDK_DIR)/public -isystem$(SSDK_DIR)/mathlib -isystem$(SSDK_DIR)/common -isystem$(SSDK_DIR)/public/tier1 -isystem$(SSDK_DIR)/public/tier0 -isystem$(SSDK_DIR)
|
||||
INCLUDES=-Iucccccp -isystem/usr/include/c++/6.3.1 -isystem$(SSDK_DIR)/public -isystem$(SSDK_DIR)/mathlib -isystem$(SSDK_DIR)/common -isystem$(SSDK_DIR)/public/tier1 -isystem$(SSDK_DIR)/public/tier0 -isystem$(SSDK_DIR)
|
||||
LDLIBS=-static -l:libc.so.6 -l:libstdc++.so.6 -l:libtier0.so -l:libvstdlib.so
|
||||
LDFLAGS=-shared -L$(realpath $(LIB_DIR))
|
||||
SOURCES=$(shell find $(SRC_DIR) -name "*.c*" -print)
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 94b3e53b00ac5be465ebe44ea5fe1b1fbc18aa8f
|
||||
Subproject commit e532876ffd707a48389d54ff904dcc40a84f2839
|
@ -150,7 +150,10 @@ void CreateInterfaces() {
|
||||
g_ppScreenSpaceRegistrationHead = *(CScreenSpaceEffectRegistration***)(gSignatures.GetClientSignature("E8 ? ? ? ? 8B 10 C7 44 24 04 ? ? ? ? 89 04 24 FF 52 28 85 C0 75 4B 8B 35 ? ? ? ? 85 F6 74 31 90 8B 5E 04 85 DB 74 22 8B 03 89 1C 24") + 27);
|
||||
}
|
||||
logging::Info("Finding HUD");
|
||||
{
|
||||
IF_GAME (IsCSS()) {
|
||||
logging::Info("FATAL: Signatures not defined for CSS - HUD");
|
||||
g_CHUD = nullptr;
|
||||
} else {
|
||||
uintptr_t hud_sig = gSignatures.GetClientSignature("FF 50 08 D9 9D 24 FE FF FF 89 3C 24 E8 ? ? ? ? C7 44 24 04 ? ? ? ? C7 04 24 ? ? ? ? D9 9D 20 FE FF FF E8 ? ? ? ? 85 C0 74 3B 66 0F 6E C3 C7 44 24 10 00 00 00 00 F3 0F 5C 85 20 FE FF FF") + 28;
|
||||
g_CHUD = *reinterpret_cast<CHud**>(hud_sig);
|
||||
logging::Info("HUD 0x%08x 0x%08x", hud_sig, g_CHUD);
|
||||
|
Reference in New Issue
Block a user