Added preliminary support for Left 4 Dead; some things may not yet work.
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
# (C)2004-2008 SourceMod Development Team
|
||||
# Makefile written by David "BAILOPAN" Anderson
|
||||
|
||||
SOURCEMM16 = ../../sourcemm-1.6
|
||||
SOURCEMM16 = ../../mmsource
|
||||
|
||||
#####################################
|
||||
### EDIT BELOW FOR OTHER PROJECTS ###
|
||||
@@ -23,7 +23,7 @@ CPP = gcc-4.1
|
||||
|
||||
LINK = -static-libgcc
|
||||
|
||||
INCLUDE = -I$(SOURCEMM16) -I$(SOURCEMM16)/sourcehook -I$(SOURCEMM16)/sourcemm
|
||||
INCLUDE = -I$(SOURCEMM16) -I$(SOURCEMM16)/sourcehook
|
||||
|
||||
CFLAGS += -D_LINUX -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp \
|
||||
-D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -Wall -Wno-uninitialized \
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
#define FILENAME_1_4_EP1 "sourcemod.1.ep1" PLATFORM_EXT
|
||||
#define FILENAME_1_6_EP2 "sourcemod.2.ep2" PLATFORM_EXT
|
||||
#define FILENAME_1_6_EP1 "sourcemod.2.ep1" PLATFORM_EXT
|
||||
#define FILENAME_1_7_L4D "sourcemod.2.l4d" PLATFORM_EXT
|
||||
|
||||
HINSTANCE g_hCore = NULL;
|
||||
bool load_attempted = false;
|
||||
@@ -213,6 +214,11 @@ DLL_EXPORT METAMOD_PLUGIN *CreateInterface_MMS(const MetamodVersionInfo *mvi, co
|
||||
filename = FILENAME_1_6_EP1;
|
||||
break;
|
||||
}
|
||||
case SOURCE_ENGINE_LEFT4DEAD:
|
||||
{
|
||||
filename = FILENAME_1_7_L4D;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user