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 17:32:26 +03:00 committed by GitHub
parent da3e868df5
commit 3100e23b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -89,6 +89,7 @@ public:
void * serverFactory;
void * engineFactory;
void * matchmakingDSFactory;
void * soundemittersystemFactory;
SMGlobalClass * listeners;
// ConVar functions.

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)

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.