parent
cf0a49881e
commit
14227c04b8
@ -50,8 +50,8 @@
|
|||||||
|
|
||||||
typedef ICommandLine *(*FakeGetCommandLine)();
|
typedef ICommandLine *(*FakeGetCommandLine)();
|
||||||
|
|
||||||
#define TIER0_NAME SOURCE_BIN_PREFIX "tier0" SOURCE_BIN_SUFFIX SOURCE_BIN_EXT
|
#define TIER0_NAME FORMAT_SOURCE_BIN_NAME("tier0")
|
||||||
#define VSTDLIB_NAME SOURCE_BIN_PREFIX "vstdlib" SOURCE_BIN_SUFFIX SOURCE_BIN_EXT
|
#define VSTDLIB_NAME FORMAT_SOURCE_BIN_NAME("vstdlib")
|
||||||
|
|
||||||
CHalfLife2 g_HL2;
|
CHalfLife2 g_HL2;
|
||||||
ConVar *sv_lan = NULL;
|
ConVar *sv_lan = NULL;
|
||||||
|
@ -84,6 +84,9 @@ using namespace SourceMod;
|
|||||||
#define SOURCE_BIN_EXT ".so"
|
#define SOURCE_BIN_EXT ".so"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define FORMAT_SOURCE_BIN_NAME(basename) \
|
||||||
|
(SOURCE_BIN_PREFIX basename SOURCE_BIN_SUFFIX SOURCE_BIN_EXT)
|
||||||
|
|
||||||
struct DataTableInfo
|
struct DataTableInfo
|
||||||
{
|
{
|
||||||
struct SendPropPolicy
|
struct SendPropPolicy
|
||||||
|
@ -627,13 +627,7 @@ void CoreProviderImpl::InitializeBridge()
|
|||||||
this->serverFactory = (void *)g_SMAPI->GetServerFactory(false);
|
this->serverFactory = (void *)g_SMAPI->GetServerFactory(false);
|
||||||
this->listeners = SMGlobalClass::head;
|
this->listeners = SMGlobalClass::head;
|
||||||
|
|
||||||
char path[PLATFORM_MAX_PATH];
|
if (ke::RefPtr<ke::SharedLib> mmlib = ke::SharedLib::Open(FORMAT_SOURCE_BIN_NAME("matchmaking_ds"), NULL, 0)) {
|
||||||
|
|
||||||
ke::path::Format(path, sizeof(path),
|
|
||||||
"%s/bin/" PLATFORM_FOLDER "matchmaking_ds" SOURCE_BIN_SUFFIX SOURCE_BIN_EXT,
|
|
||||||
g_SMAPI->GetBaseDir());
|
|
||||||
|
|
||||||
if (ke::RefPtr<ke::SharedLib> mmlib = ke::SharedLib::Open(path, NULL, 0)) {
|
|
||||||
this->matchmakingDSFactory =
|
this->matchmakingDSFactory =
|
||||||
mmlib->get<decltype(sCoreProviderImpl.matchmakingDSFactory)>("CreateInterface");
|
mmlib->get<decltype(sCoreProviderImpl.matchmakingDSFactory)>("CreateInterface");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user