Added support for gamedata lookups from matchmaking_ds lib (bug 4158, r=Fyren).

This commit is contained in:
Nicholas Hastings
2011-06-27 09:30:52 -04:00
parent d2a89c5856
commit 5c40e02ee6
3 changed files with 31 additions and 1 deletions
+2
View File
@@ -515,6 +515,8 @@ SMCResult CGameConfig::ReadSMC_LeavingSection(const SMCStates *states)
addrInBase = smcore.serverFactory;
} else if (strcmp(s_TempSig.library, "engine") == 0) {
addrInBase = smcore.engineFactory;
} else if (strcmp(s_TempSig.library, "matchmaking_ds") == 0) {
addrInBase = smcore.matchmakingDSFactory;
}
void *final_addr = NULL;
if (addrInBase == NULL)
+2 -1
View File
@@ -42,7 +42,7 @@ using namespace SourceMod;
* Add 1 to the RHS of this expression to bump the intercom file
* This is to prevent mismatching core/logic binaries
*/
#define SM_LOGIC_MAGIC (0x0F47C0DE - 15)
#define SM_LOGIC_MAGIC (0x0F47C0DE - 16)
#if defined SM_LOGIC
class IVEngineServer
@@ -119,6 +119,7 @@ struct sm_core_t
ServerGlobals *serverGlobals;
void * serverFactory;
void * engineFactory;
void * matchmakingDSFactory;
};
struct sm_logic_t