CvHomelandAI::GetLogFileName(CvString &) const
- Defined in
- CvHomelandAI.cpp, line 6262
- Class
- CvHomelandAI
- Hook name
CivHooks::CvHomelandAI_GetLogFileName
Hooks
static bool BeforeCvHomelandAI_GetLogFileName(const CvHomelandAI* self, CvString& playerName, CvString& result);static void AfterCvHomelandAI_GetLogFileName(const CvHomelandAI* self, CvString& playerName, CvString& result);static CvString ReplaceCvHomelandAI_GetLogFileName(CvString (*original)(const CvHomelandAI*, CvString&), const CvHomelandAI* self, CvString& playerName);CivRegisterBefore<CivHooks::CvHomelandAI_GetLogFileName>(host, &BeforeCvHomelandAI_GetLogFileName);CivRegisterAfter<CivHooks::CvHomelandAI_GetLogFileName>(host, &AfterCvHomelandAI_GetLogFileName);CivRegisterReplace<CivHooks::CvHomelandAI_GetLogFileName>(host, &ReplaceCvHomelandAI_GetLogFileName);
Code
6261/// Build log filename6262CvString CvHomelandAI::GetLogFileName(CvString& playerName) const6263{6264 CvString strLogName;62656266 // Open the log file6267 if(GC.getPlayerAndCityAILogSplit())6268 {6269 strLogName = "PlayerHomelandAILog_" + playerName + ".csv";6270 }6271 else6272 {6273 strLogName = "PlayerHomelandAILog.csv";6274 }62756276 return strLogName;6277}
Calls
- CvGlobals::getPlayerAndCityAILogSplit()
CvString::CvStringCvString::CvStringCvString::operator=CvString::operator=std::operator+std::operator+