Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 23, 2009, 7:44:49 PM (14 years ago)
Author:
rgrieder
Message:

Simplified our resource system a bit by working with a single resource group on the user end.
However you can still declare resource groups for separate loading. But accessing the files will always look in all groups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/LevelManager.cc

    r6394 r6404  
    3030
    3131#include <map>
    32 #include <OgreResourceGroupManager.h>
    3332
    3433#include "core/CommandLineParser.h"
     
    3635#include "core/CoreIncludes.h"
    3736#include "core/Loader.h"
     37#include "core/Resource.h"
    3838#include "core/ScopedSingletonManager.h"
    3939#include "PlayerManager.h"
     
    132132    void LevelManager::compileAvailableLevelList()
    133133    {
    134         availableLevels_.clear();
    135 
    136         availableLevels_ = *Ogre::ResourceGroupManager::getSingleton().findResourceNames(
    137             Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, "*.oxw");
    138 
     134        availableLevels_ = *Resource::findResourceNames("*.oxw");
    139135        for (std::vector<std::string>::iterator it = availableLevels_.begin(); it != availableLevels_.end();)
    140136            if (it->find("old/") == 0)
Note: See TracChangeset for help on using the changeset viewer.