Bazaar developer reference

CvPreGame::setLoadFileName(const CvString &, StorageLocation)

Defined in
CvPreGame.cpp, line 2722
Hook name
CivHooks::CvPreGame_setLoadFileName_with_const_CvString_StorageLocation

Hooks

static bool BeforeCvPreGame_setLoadFileName_with_const_CvString_StorageLocation(const CvString& f, StorageLocation eStorage);static void AfterCvPreGame_setLoadFileName_with_const_CvString_StorageLocation(const CvString& f, StorageLocation eStorage);static void ReplaceCvPreGame_setLoadFileName_with_const_CvString_StorageLocation(void (*original)(const CvString&, StorageLocation), const CvString& f, StorageLocation eStorage);CivRegisterBefore<CivHooks::CvPreGame_setLoadFileName_with_const_CvString_StorageLocation>(host, &BeforeCvPreGame_setLoadFileName_with_const_CvString_StorageLocation);CivRegisterAfter<CivHooks::CvPreGame_setLoadFileName_with_const_CvString_StorageLocation>(host, &AfterCvPreGame_setLoadFileName_with_const_CvString_StorageLocation);CivRegisterReplace<CivHooks::CvPreGame_setLoadFileName_with_const_CvString_StorageLocation>(host, &ReplaceCvPreGame_setLoadFileName_with_const_CvString_StorageLocation);

Code

2722void setLoadFileName(const CvString& f, StorageLocation eStorage)2723{2724	if(s_loadFileName.get() != f)2725	{2726		s_loadFileName = f;2727	}27282729	s_loadFileStorage = eStorage;2730}

Calls

Called by