(svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir required, as with AIs

-Add [NoAI]: allow multiple versions of the same AI co-exist
-Change [NoAI]: updated the whole method of AI (Library) finding and loading; it is now much more clear and transparent
-Change [NoAI]: the name of the AI is now the name used by CreateInstance()
-Change [NoAI]: make the AI finder a bit more clever, mostly related to version finding
This commit is contained in:
truebrain
2009-01-15 18:15:12 +00:00
parent 31a586dc6f
commit e436f0218f
8 changed files with 173 additions and 154 deletions

View File

@@ -40,7 +40,7 @@
info = AI::ai_scanner->SelectRandomAI();
assert(info != NULL);
/* Load default data and store the name in the settings */
AIConfig::GetConfig(company)->ChangeAI(info->GetDirName());
AIConfig::GetConfig(company)->ChangeAI(info->GetInstanceName());
}
_current_company = company;