Allow gamedata to use vscript binary (#1826)
This commit is contained in:
parent
4015f9c1c9
commit
568da23c96
@ -90,6 +90,7 @@ public:
|
||||
void * engineFactory;
|
||||
void * matchmakingDSFactory;
|
||||
void * soundemittersystemFactory;
|
||||
void * vscriptFactory;
|
||||
SMGlobalClass * listeners;
|
||||
|
||||
// ConVar functions.
|
||||
|
@ -612,6 +612,8 @@ SMCResult CGameConfig::ReadSMC_LeavingSection(const SMCStates *states)
|
||||
addrInBase = bridge->matchmakingDSFactory;
|
||||
} else if (strcmp(s_TempSig.library, "soundemittersystem") == 0) {
|
||||
addrInBase = bridge->soundemittersystemFactory;
|
||||
} else if (strcmp(s_TempSig.library, "vscript") == 0) {
|
||||
addrInBase = bridge->vscriptFactory;
|
||||
}
|
||||
void *final_addr = NULL;
|
||||
if (addrInBase == NULL)
|
||||
|
@ -637,6 +637,10 @@ void CoreProviderImpl::InitializeBridge()
|
||||
this->soundemittersystemFactory = (void*)Sys_GetFactory(mmlib);
|
||||
}
|
||||
|
||||
if (auto mmlib = ::filesystem->LoadModule("vscript" SOURCE_BIN_SUFFIX)) {
|
||||
this->vscriptFactory = (void*)Sys_GetFactory(mmlib);
|
||||
}
|
||||
|
||||
logic_init_(this, &logicore);
|
||||
|
||||
// Join logic's SMGlobalClass instances.
|
||||
|
Loading…
Reference in New Issue
Block a user