Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 28, 2008, 7:12:44 PM (16 years ago)
Author:
rgrieder
Message:
  • Removed ugly hack with windows/unix file path conversion.
  • Removed obsolete entries in msvc files (tolua_bind.h)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/src/orxonox/gamestates/GSGraphics.cc

    r2512 r2534  
    3131
    3232#include <fstream>
     33#include <boost/filesystem.hpp>
     34
    3335#include <OgreConfigFile.h>
    3436#include <OgreFrameListener.h>
     
    371373            ogrePluginsFolder_ = ".";
    372374
    373 #if ORXONOX_PLATFORM == ORXONOX_PLATFORM_WIN32
    374         convertToWindowsPath(&ogrePluginsFolder_);
    375 #else
    376         convertToUnixPath(&ogrePluginsFolder_);
    377 #endif
    378 
     375        boost::filesystem::path folder(ogrePluginsFolder_);
    379376        // Do some SubString magic to get the comma separated list of plugins
    380377        SubString plugins(ogrePlugins_, ",", " ", false, 92, false, 34, false, 40, 41, false, '\0');
    381378        for (unsigned int i = 0; i < plugins.size(); ++i)
    382             ogreRoot_->loadPlugin(ogrePluginsFolder_ + plugins[i]);
     379            ogreRoot_->loadPlugin((folder / plugins[i]).native_file_string());
    383380    }
    384381
Note: See TracChangeset for help on using the changeset viewer.