- added another special variable (application path) that can be used for variable substituion in ini file values

This commit is contained in:
Mark Vejvoda
2011-03-10 19:19:14 +00:00
parent 3758a4ba92
commit ae97a1306c
4 changed files with 12 additions and 0 deletions

View File

@@ -210,6 +210,7 @@ MainWindow::MainWindow( std::pair<string,vector<string> > unitToLoad,
wxSize(Renderer::windowW, Renderer::windowH)), model(NULL), glCanvas(NULL), renderer(NULL), initTextureManager(true), timer(NULL)
{
this->appPath = appPath;
Properties::setApplicationPath(extractDirectoryPathFromFile(appPath));
Config &config = Config::getInstance();
//getGlPlatformExtensions();