Hooks
static bool BeforeCvDllPreGame_GetMapOption(CvDllPreGame* self, uint uiIndex, char* szOptionNameBuffer, uint nOptionNameBufferSize, int& iValue, bool& result);static void AfterCvDllPreGame_GetMapOption(CvDllPreGame* self, uint uiIndex, char* szOptionNameBuffer, uint nOptionNameBufferSize, int& iValue, bool& result);static bool ReplaceCvDllPreGame_GetMapOption(bool (*original)(CvDllPreGame*, uint, char*, uint, int&), CvDllPreGame* self, uint uiIndex, char* szOptionNameBuffer, uint nOptionNameBufferSize, int& iValue);// CivHooks.h gives this hook point no types, so nothing checks these hooks' parameters.host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetMapOption::ID, CIV_HOOK_BEFORE, (void*)&BeforeCvDllPreGame_GetMapOption);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetMapOption::ID, CIV_HOOK_AFTER, (void*)&AfterCvDllPreGame_GetMapOption);host->RegisterHook(host->pluginIndex, CivHooks::CvDllPreGame_GetMapOption::ID, CIV_HOOK_REPLACE, (void*)&ReplaceCvDllPreGame_GetMapOption);