This commit is contained in:
David Anderson 2010-04-29 01:28:27 -07:00
commit e906a0da8c
6 changed files with 32 additions and 32 deletions

View File

@ -200,7 +200,7 @@ class SM:
else: else:
staticLibs = os.path.join(sdkPath, 'lib', 'linux') staticLibs = os.path.join(sdkPath, 'lib', 'linux')
workFolder = os.path.join(AMBuild.outputFolder, job.workFolder) workFolder = os.path.join(AMBuild.outputFolder, job.workFolder)
if sdk == 'l4d2': if sdk == 'ep2v' or sdk == 'l4d2':
for i in ['tier1_i486.a', 'mathlib_i486.a', 'libvstdlib.so', 'libtier0.so']: for i in ['tier1_i486.a', 'mathlib_i486.a', 'libvstdlib.so', 'libtier0.so']:
link = os.path.join(workFolder, i) link = os.path.join(workFolder, i)
target = os.path.join(staticLibs, i) target = os.path.join(staticLibs, i)
@ -268,7 +268,7 @@ class SM:
if not noLink: if not noLink:
if AMBuild.target['platform'] == 'linux': if AMBuild.target['platform'] == 'linux':
compiler['POSTLINKFLAGS'][0:0] = ['-lm'] compiler['POSTLINKFLAGS'][0:0] = ['-lm']
if sdk == 'l4d2': if sdk == 'ep2v' or sdk == 'l4d2':
compiler['POSTLINKFLAGS'][0:0] = ['libtier0.so'] compiler['POSTLINKFLAGS'][0:0] = ['libtier0.so']
compiler['POSTLINKFLAGS'][0:0] = ['libvstdlib.so'] compiler['POSTLINKFLAGS'][0:0] = ['libvstdlib.so']
else: else:

View File

@ -557,7 +557,7 @@ SMCResult CGameConfig::ReadSMC_LeavingSection(const SMCStates *states)
void *handle = dlopen(info.dli_fname, RTLD_NOW); void *handle = dlopen(info.dli_fname, RTLD_NOW);
if (handle) if (handle)
{ {
#if SOURCE_ENGINE == SE_LEFT4DEAD2 #if (SOURCE_ENGINE == SE_ORANGEBOXVALVE) || (SOURCE_ENGINE == SE_LEFT4DEAD2)
final_addr = g_MemUtils.ResolveSymbol(handle, &s_TempSig.sig[1]); final_addr = g_MemUtils.ResolveSymbol(handle, &s_TempSig.sig[1]);
#else #else
final_addr = dlsym(handle, &s_TempSig.sig[1]); final_addr = dlsym(handle, &s_TempSig.sig[1]);

View File

@ -129,7 +129,7 @@ static cell_t PrepSDKCall_SetSignature(IPluginContext *pContext, const cell_t *p
{ {
return 0; return 0;
} }
#if SOURCE_ENGINE == SE_LEFT4DEAD2 #if (SOURCE_ENGINE == SE_ORANGEBOXVALVE) || (SOURCE_ENGINE == SE_LEFT4DEAD2)
s_call_addr = memutils->ResolveSymbol(handle, &sig[1]); s_call_addr = memutils->ResolveSymbol(handle, &sig[1]);
#else #else
s_call_addr = dlsym(handle, &sig[1]); s_call_addr = dlsym(handle, &sig[1]);

View File

@ -23,23 +23,23 @@
} }
"RemovePlayerItem" "RemovePlayerItem"
{ {
"windows" "258" "windows" "259"
"linux" "259" "linux" "260"
} }
"Weapon_GetSlot" "Weapon_GetSlot"
{ {
"windows" "256" "windows" "257"
"linux" "257" "linux" "258"
} }
"Ignite" "Ignite"
{ {
"windows" "201" "windows" "202"
"linux" "202" "linux" "203"
} }
"Extinguish" "Extinguish"
{ {
"windows" "205" "windows" "206"
"linux" "206" "linux" "207"
} }
"Teleport" "Teleport"
{ {
@ -53,13 +53,13 @@
} }
"GetVelocity" "GetVelocity"
{ {
"windows" "136" "windows" "137"
"linux" "137" "linux" "138"
} }
"EyeAngles" "EyeAngles"
{ {
"windows" "127" "windows" "128"
"linux" "128" "linux" "129"
} }
"AcceptInput" "AcceptInput"
{ {
@ -88,8 +88,8 @@
} }
"WeaponEquip" "WeaponEquip"
{ {
"windows" "249" "windows" "250"
"linux" "250" "linux" "251"
} }
"Activate" "Activate"
{ {

View File

@ -28,18 +28,18 @@
} }
"Weapon_GetSlot" "Weapon_GetSlot"
{ {
"windows" "256" "windows" "257"
"linux" "257" "linux" "258"
} }
"Ignite" "Ignite"
{ {
"windows" "201" "windows" "202"
"linux" "202" "linux" "203"
} }
"Extinguish" "Extinguish"
{ {
"windows" "205" "windows" "206"
"linux" "206" "linux" "207"
} }
"Teleport" "Teleport"
{ {
@ -53,13 +53,13 @@
} }
"GetVelocity" "GetVelocity"
{ {
"windows" "136" "windows" "137"
"linux" "137" "linux" "138"
} }
"EyeAngles" "EyeAngles"
{ {
"windows" "127" "windows" "128"
"linux" "128" "linux" "129"
} }
"DispatchKeyValue" "DispatchKeyValue"
{ {
@ -88,8 +88,8 @@
} }
"WeaponEquip" "WeaponEquip"
{ {
"windows" "249" "windows" "250"
"linux" "250" "linux" "251"
} }
"Activate" "Activate"
{ {

View File

@ -86,8 +86,8 @@
{ {
"ForceRespawn" "ForceRespawn"
{ {
"windows" "312" "windows" "313"
"linux" "313" "linux" "314"
} }
} }
} }