Add support for gamedata lookups from soundemittersystem library (#1787)

* Add `soundemittersystem` library to game config signatures

* Remove `GAMEBIN` by `soundemittersystem` module load
This commit is contained in:
Vladimir
2022-08-04 16:32:26 +02:00
committed by GitHub
parent da3e868df5
commit 3100e23b87
3 changed files with 7 additions and 0 deletions
+1
View File
@@ -89,6 +89,7 @@ public:
void * serverFactory;
void * engineFactory;
void * matchmakingDSFactory;
void * soundemittersystemFactory;
SMGlobalClass * listeners;
// ConVar functions.
+2
View File
@@ -610,6 +610,8 @@ SMCResult CGameConfig::ReadSMC_LeavingSection(const SMCStates *states)
addrInBase = bridge->engineFactory;
} else if (strcmp(s_TempSig.library, "matchmaking_ds") == 0) {
addrInBase = bridge->matchmakingDSFactory;
} else if (strcmp(s_TempSig.library, "soundemittersystem") == 0) {
addrInBase = bridge->soundemittersystemFactory;
}
void *final_addr = NULL;
if (addrInBase == NULL)
+4
View File
@@ -633,6 +633,10 @@ void CoreProviderImpl::InitializeBridge()
this->matchmakingDSFactory = (void*)Sys_GetFactory(mmlib);
}
if (auto mmlib = ::filesystem->LoadModule("soundemittersystem" SOURCE_BIN_SUFFIX)) {
this->soundemittersystemFactory = (void*)Sys_GetFactory(mmlib);
}
logic_init_(this, &logicore);
// Join logic's SMGlobalClass instances.