Revision: 1425
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1425&view=rev
Author:   rorthomas
Date:     2010-07-05 15:32:44 +0000 (Mon, 05 Jul 2010)

Log Message:
-----------
fixed envmaps resource zip was not loading

Modified Paths:
--------------
    trunk/source/main/RigsOfRods.cpp

Modified: trunk/source/main/RigsOfRods.cpp
===================================================================
--- trunk/source/main/RigsOfRods.cpp    2010-07-05 14:34:52 UTC (rev 1424)
+++ trunk/source/main/RigsOfRods.cpp    2010-07-05 15:32:44 UTC (rev 1425)
@@ -105,8 +105,10 @@
        SETTINGS.loadSettings(SETTINGS.getSetting("Config Root")+"RoR.cfg");
 
        //CREATE OGRE ROOT
-       String logFilename = SETTINGS.getSetting("Log Path") + name + 
Ogre::String(".log");
-       mRoot = new Root(SETTINGS.getSetting("plugins.cfg"), 
SETTINGS.getSetting("ogre.cfg"), logFilename);
+       String logFilename   = SETTINGS.getSetting("Log Path") + name + 
Ogre::String(".log");
+       String pluginsConfig = SETTINGS.getSetting("plugins.cfg");
+       String ogreConfig    = SETTINGS.getSetting("ogre.cfg");
+       mRoot = new Root(pluginsConfig, ogreConfig, logFilename);
 
        //FROM NOW ON WE HAVE LOGMANAGER!
 
@@ -168,6 +170,9 @@
 
        if(SETTINGS.getSetting("Motion blur") == "Yes")
                loadMainResource("blur", 
ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
+       
+       if(SETTINGS.getSetting("Envmap") == "Yes")
+               loadMainResource("envmap", 
ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
 
        if(SETTINGS.getSetting("HeatHaze") == "Yes")
                loadMainResource("heathaze", 
ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to