MCPcopy Create free account
hub / github.com/assaultcube/AC / MakeBotFileName

Method MakeBotFileName

source/src/bot/botmanager.cpp:422–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void CBotManager::MakeBotFileName(const char *szFileName, const char *szDir1, const char *szDir2, char *szOutput)
423{
424 const char *DirSeperator;
425
426#ifdef WIN32
427 DirSeperator = "\\";
428 strcpy(szOutput, "bot\\");
429#else
430 DirSeperator = "/";
431 strcpy(szOutput, "bot/");
432#endif
433
434 if (szDir1)
435 {
436 strcat(szOutput, szDir1);
437 strcat(szOutput, DirSeperator);
438 }
439
440 if (szDir2)
441 {
442 strcat(szOutput, szDir2);
443 strcat(szOutput, DirSeperator);
444 }
445
446 strcat(szOutput, szFileName);
447}
448
449void CBotManager::CreateSkillData()
450{

Callers 4

LoadWaypointsMethod · 0.80
SaveWaypointsMethod · 0.80
LoadWPExpFileMethod · 0.80
SaveWPExpFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected