1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-30 19:52:17 +01:00

Fixed loading on Left 4 Dead 2 DLC (The Passing) (bug 4358, r=dvander).

This commit is contained in:
Scott Ehlert 2010-04-23 16:55:51 -04:00
parent 7d6e151192
commit 2c5cd02440
4 changed files with 15 additions and 13 deletions

View File

@ -42,7 +42,7 @@ ifeq "$(ENGINE)" "orangebox"
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/orangebox
BINARY = metamod.2.ep2.so
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "orangeboxvalve"
@ -53,7 +53,7 @@ ifeq "$(ENGINE)" "orangeboxvalve"
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/orangebox
BINARY = metamod.2.ep2v.so
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "left4dead"
@ -64,7 +64,7 @@ ifeq "$(ENGINE)" "left4dead"
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/l4d
BINARY = metamod.2.l4d.so
LIB_SUFFIX = i486
LIB_SUFFIX = _i486.so
override ENGSET = true
endif
ifeq "$(ENGINE)" "left4dead2"
@ -75,13 +75,15 @@ ifeq "$(ENGINE)" "left4dead2"
INCLUDE += -I$(HL2SDK)/public/game/server
SRCDS = $(SRCDS_BASE)/left4dead2_demo
BINARY = metamod.2.l4d2.so
LIB_SUFFIX = linux
LIB_PREFIX = lib
LIB_SUFFIX = .so
override ENGSET = true
endif
CFLAGS += -DSE_DARKMESSIAH=2 -DSE_ORANGEBOX=3 -DSE_ORANGEBOXVALVE=4 -DSE_LEFT4DEAD=5 -DSE_LEFT4DEAD2=6
LINK += $(HL2LIB)/tier1_i486.a vstdlib_$(LIB_SUFFIX).so tier0_$(LIB_SUFFIX).so -static-libgcc
LINK += $(HL2LIB)/tier1_i486.a $(LIB_PREFIX)vstdlib$(LIB_SUFFIX) $(LIB_PREFIX)tier0$(LIB_SUFFIX) \
-static-libgcc
INCLUDE += -I. -I.. -I$(HL2PUB) -I$(HL2PUB)/engine -I$(HL2PUB)/mathlib -I$(HL2PUB)/vstdlib \
-I$(HL2PUB)/tier0 -I$(HL2PUB)/tier1 -I. -Isourcehook -I../loader
@ -122,8 +124,8 @@ all: check
mkdir -p $(BIN_DIR)
mkdir -p $(BIN_DIR)/provider
mkdir -p $(BIN_DIR)/sourcehook
ln -sf $(HL2LIB)/vstdlib_$(LIB_SUFFIX).so
ln -sf $(HL2LIB)/tier0_$(LIB_SUFFIX).so
ln -sf $(HL2LIB)/$(LIB_PREFIX)vstdlib$(LIB_SUFFIX)
ln -sf $(HL2LIB)/$(LIB_PREFIX)tier0$(LIB_SUFFIX)
$(MAKE) -f Makefile metamod
check:

View File

@ -21,11 +21,11 @@ CPP_GCC4_FLAGS = -fvisibility-inlines-hidden
CPP = gcc-4.1
ifeq "$(ENGINE)" "left4dead2"
BINARY = server_linux.so
CFLAGS += -DLIB_SUFFIX=\"_linux.so\"
BINARY = server.so
CFLAGS += -DLIB_PREFIX=\"lib\" -DLIB_SUFFIX=\".so\"
else
BINARY = server_i486.so
CFLAGS += -DLIB_SUFFIX=\"_i486.so\"
CFLAGS += -DLIB_PREFIX=\"\" -DLIB_SUFFIX=\"_i486.so\"
endif
LINK += -static-libgcc

View File

@ -180,8 +180,8 @@ mm_GetProcAddress(const char *name)
#define TIER0_NAME "bin\\tier0.dll"
#define VSTDLIB_NAME "bin\\vstdlib.dll"
#elif defined __linux__
#define TIER0_NAME "bin/tier0" LIB_SUFFIX
#define VSTDLIB_NAME "bin/vstdlib" LIB_SUFFIX
#define TIER0_NAME "bin/" LIB_PREFIX "tier0" LIB_SUFFIX
#define VSTDLIB_NAME "bin/" LIB_PREFIX "vstdlib" LIB_SUFFIX
#endif
const char *

View File

@ -14,7 +14,7 @@ chdir('..');
# Folder .vcproj Engine Binary Suffix type Platform
Build('loader', 'mm_loader', '', 'server', 'full', 'both');
Build('loader', 'mm_loader', 'Left4Dead2', 'server_linux', '', 'linux');
Build('loader', 'mm_loader', 'Left4Dead2', 'server', '', 'linux');
Build('core-legacy', 'mm_core-legacy', '', 'metamod.1.ep1', '', 'both');
Build('core', 'mm_core', 'OrangeBox', 'metamod.2.ep2', '', 'both');
Build('core', 'mm_core', 'OrangeBoxValve', 'metamod.2.ep2v', '', 'both');