Loads succesfully on tf now, Initial offset testing looks good (bug 3948, what else)
This commit is contained in:
parent
65d34bdb55
commit
58cb84d0bf
@ -74,7 +74,7 @@ CLocalExtension::CLocalExtension(const char *filename)
|
||||
#elif SOURCE_ENGINE == SE_ORANGEBOX
|
||||
"extensions/auto.2.ep2/%s",
|
||||
#elif SOURCE_ENGINE == SE_ORANGEBOXVALVE
|
||||
"extensions/auto.2.ep2valve",
|
||||
"extensions/auto.2.ep2valve/%s",
|
||||
#elif SOURCE_ENGINE == SE_DARKMESSIAH
|
||||
"extensions/auto.2.darkm/%s",
|
||||
#else
|
||||
|
@ -180,7 +180,7 @@ const SourceHook::PassInfo * CallWrapper::GetSHParamInfo(unsigned int num)
|
||||
|
||||
unsigned int CallWrapper::GetParamOffset(unsigned int num)
|
||||
{
|
||||
assert(num <= GetParamCount() && num > 0);
|
||||
assert(num < GetParamCount() && num >= 0);
|
||||
|
||||
return m_Params[num].offset;
|
||||
}
|
||||
|
@ -991,6 +991,10 @@
|
||||
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||
UniqueIdentifier="{C06F7BFF-18EE-4994-8572-D6383011354B}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\..\public\extensions\IBinTools.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\version.rc"
|
||||
>
|
||||
@ -1070,10 +1074,6 @@
|
||||
Name="Interfaces"
|
||||
UniqueIdentifier="{7DE81EA3-99D9-4f34-823A-B314791F3514}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\..\public\extensions\IBinTools.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
</Files>
|
||||
<Globals>
|
||||
|
@ -17,7 +17,7 @@
|
||||
/* Special OB engine for TF/DoD:S only */
|
||||
"engine.ep2valve.txt"
|
||||
{
|
||||
engine" "orangebox_valve"
|
||||
"engine" "orangebox_valve"
|
||||
}
|
||||
|
||||
"engine.ep1.txt"
|
||||
|
@ -48,6 +48,8 @@
|
||||
return (c == '/' || c == '\\');
|
||||
}
|
||||
#include <Windows.h>
|
||||
#define TF_PATH "\\tf\\"
|
||||
#define DOD_PATH "\\dod\\"
|
||||
#else
|
||||
#define DLL_EXPORT extern "C" __attribute__((visibility("default")))
|
||||
#define openlib(lib) dlopen(lib, RTLD_NOW)
|
||||
@ -61,6 +63,8 @@
|
||||
return (c == '/');
|
||||
}
|
||||
#include <dlfcn.h>
|
||||
#define TF_PATH "/tf/"
|
||||
#define DOD_PATH "/dod/"
|
||||
#endif
|
||||
|
||||
#define METAMOD_API_MAJOR 2
|
||||
@ -213,7 +217,7 @@ DLL_EXPORT METAMOD_PLUGIN *CreateInterface_MMS(const MetamodVersionInfo *mvi, co
|
||||
}
|
||||
case SOURCE_ENGINE_ORANGEBOX:
|
||||
{
|
||||
if (strncmp(mli->pl_path, "tf/", 3) == 0 || strncmp(mli->pl_path, "dod/", 4) == 0)
|
||||
if (strstr(mli->pl_path, TF_PATH) || strstr(mli->pl_path, DOD_PATH))
|
||||
{
|
||||
filename = FILENAME_1_6_EP2VALVE;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user