final ports and first fixes
This commit is contained in:
1 parent
77690cbd96
commit
6f3556009a
23 files changed
+2302
-41
No files matched your search
@@ -55,10 +55,13 @@ namespace Cevo {
|
||||
namespace GameServer {
|
||||
|
||||
|
||||
// Equivalent of Directories.pas's GetAiDir() - see Brain.cpp's own copy of
|
||||
// this (not shared via a header since Directories.pas itself isn't ported).
|
||||
// Equivalent of Directories.pas's GetAiDir().
|
||||
QString getAiDir()
|
||||
{
|
||||
// The CEVO_AI_DIR environment variable overrides the install location (for running a build-tree binary).
|
||||
const QByteArray fromEnvironment = qgetenv("CEVO_AI_DIR");
|
||||
if (!fromEnvironment.isEmpty())
|
||||
return QString::fromLocal8Bit(fromEnvironment);
|
||||
#ifdef CEVO_AI_DIR
|
||||
return QStringLiteral(CEVO_AI_DIR);
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user