Bazaar developer reference

CvGlobals::getInfoTypeForHash(uint, bool) const

Defined in
CvGlobals.cpp, line 6335
Class
CvGlobals
Hook name
CivHooks::CvGlobals_getInfoTypeForHash

Hooks

static bool BeforeCvGlobals_getInfoTypeForHash(const CvGlobals* self, uint uiHash, bool hideAssert, int& result);static void AfterCvGlobals_getInfoTypeForHash(const CvGlobals* self, uint uiHash, bool hideAssert, int& result);static int ReplaceCvGlobals_getInfoTypeForHash(int (*original)(const CvGlobals*, uint, bool), const CvGlobals* self, uint uiHash, bool hideAssert);CivRegisterBefore<CivHooks::CvGlobals_getInfoTypeForHash>(host, &BeforeCvGlobals_getInfoTypeForHash);CivRegisterAfter<CivHooks::CvGlobals_getInfoTypeForHash>(host, &AfterCvGlobals_getInfoTypeForHash);CivRegisterReplace<CivHooks::CvGlobals_getInfoTypeForHash>(host, &ReplaceCvGlobals_getInfoTypeForHash);

Code

6335int CvGlobals::getInfoTypeForHash(uint uiHash, bool hideAssert) const6336{63376338	InfosHashMap::const_iterator it = m_infosHashMap.find(uiHash);6339	if(it!=m_infosHashMap.end())6340	{6341		return it->second;6342	}63436344	if(!hideAssert)6345	{6346		CvAssertMsg(uiHash==0, "Could not find resource hash");6347	}63486349	return -1;6350}

Calls

Called by