|
|
@ -90,7 +90,14 @@ MissionCompilerMainWindow::MissionCompilerMainWindow(QWidget *parent) :
|
|
|
|
|
|
|
|
|
|
|
|
NLLIGO::Register();
|
|
|
|
NLLIGO::Register();
|
|
|
|
// TODO try/catch exception. Crashes if path invalid.
|
|
|
|
// TODO try/catch exception. Crashes if path invalid.
|
|
|
|
|
|
|
|
try{
|
|
|
|
m_ligoConfig.readPrimitiveClass(NLMISC::CPath::lookup("world_editor_classes.xml").c_str(), false);
|
|
|
|
m_ligoConfig.readPrimitiveClass(NLMISC::CPath::lookup("world_editor_classes.xml").c_str(), false);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch( NLMISC::Exception &e )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nlinfo( "Exception occured during Mission Compiler LIGO startup: %s", e.what() );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
NLLIGO::CPrimitiveContext::instance().CurrentLigoConfig = &m_ligoConfig;
|
|
|
|
NLLIGO::CPrimitiveContext::instance().CurrentLigoConfig = &m_ligoConfig;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|