Search game-dirs for entities.def files.
This commit is contained in:
parent
4e16e2dd49
commit
b2af29f067
2 changed files with 5 additions and 3 deletions
|
@ -206,8 +206,8 @@ void EntityClassQuake3_Construct()
|
||||||
StringOutputStream gameDirectory(256);
|
StringOutputStream gameDirectory(256);
|
||||||
const char *basegame = GlobalRadiant().getRequiredGameDescriptionKeyValue("basegame");
|
const char *basegame = GlobalRadiant().getRequiredGameDescriptionKeyValue("basegame");
|
||||||
const char *gamename = GlobalRadiant().getGameName();
|
const char *gamename = GlobalRadiant().getGameName();
|
||||||
baseDirectory << GlobalRadiant().getGameToolsPath() << basegame << '/';
|
baseDirectory << GlobalRadiant().getEnginePath() << basegame << '/';
|
||||||
gameDirectory << GlobalRadiant().getGameToolsPath() << gamename << '/';
|
gameDirectory << GlobalRadiant().getEnginePath() << gamename << '/';
|
||||||
|
|
||||||
class LoadEntityDefinitionsVisitor : public EClassModules::Visitor {
|
class LoadEntityDefinitionsVisitor : public EClassModules::Visitor {
|
||||||
const char *baseDirectory;
|
const char *baseDirectory;
|
||||||
|
|
|
@ -214,7 +214,9 @@ void EnginePath_Realise()
|
||||||
|
|
||||||
const char *EnginePath_get()
|
const char *EnginePath_get()
|
||||||
{
|
{
|
||||||
ASSERT_MESSAGE(g_enginepath_unrealised == 0, "EnginePath_get: engine path not realised");
|
if (g_enginepath_unrealised == 0) {
|
||||||
|
g_enginePathObservers.realise();
|
||||||
|
}
|
||||||
return g_strEnginePath.c_str();
|
return g_strEnginePath.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue