Bazaar developer reference

CvDllGameContext::GetDLLVersion()

Defined in
CvDllContext.cpp, line 122
Class
CvDllGameContext
Hook name
CivHooks::CvDllGameContext_GetDLLVersion

Hooks

static bool BeforeCvDllGameContext_GetDLLVersion(CvDllGameContext* self, const char*& result);static void AfterCvDllGameContext_GetDLLVersion(CvDllGameContext* self, const char*& result);static const char* ReplaceCvDllGameContext_GetDLLVersion(const char* (*original)(CvDllGameContext*), CvDllGameContext* self);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetDLLVersion::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllGameContext_GetDLLVersion);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetDLLVersion::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllGameContext_GetDLLVersion);host->RegisterHook(host->pluginIndex, CivHooks::CvDllGameContext_GetDLLVersion::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllGameContext_GetDLLVersion);

Code

122const char* CvDllGameContext::GetDLLVersion()123{124	return CIV5_XP2_DLL_VERSION;125}