Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9833 in orxonox.OLD for branches/new_class_id/src/lib/shell


Ignore:
Timestamp:
Sep 26, 2006, 4:59:49 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: almost killed off the old ResourceManager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/shell/shell_completion_plugin.cc

    r9734 r9833  
    2222
    2323#include "helper_functions.h"
    24 #include "loading/resource_manager.h"
     24#include "loading/new_resource_manager.h"
    2525
    2626#include "filesys/directory.h"
     
    9797    if (completionBegin.empty()) // if we do not yet have the beginning of the line, start with the chosen startDir.
    9898    {
    99       dir.setFileName(ResourceManager::getInstance()->getDataDir() + this->_subDir);
     99      dir.setFileName(Resources::NewResourceManager::getInstance()->mainGlobalPath().name() + this->_subDir);
    100100      dir.open();
    101101      for(unsigned int i = 0; i < dir.fileCount(); i++ )
     
    112112        directoryName = completionBegin.substr(0, pos);
    113113
    114       dir.setFileName(ResourceManager::getInstance()->getDataDir() + directoryName);
     114      dir.setFileName(Resources::NewResourceManager::getInstance()->mainGlobalPath().name() + directoryName);
    115115      dir.open();
    116116
     
    135135          continue;
    136136        }
    137         printf("%s\n", (ResourceManager::getInstance()->getDataDir() + fileName).c_str());
     137        printf("%s\n", (Resources::NewResourceManager::getInstance()->mainGlobalPath().name() + fileName).c_str());
    138138        if (!nocaseCmp(completionBegin, fileName, completionBegin.size()) &&
    139              ResourceManager::isInDataDir(fileName))
     139             Resources::NewResourceManager::getInstance()->checkFileInMainPath(fileName))
    140140        {
    141141          printf("Dir %s\n", fileName.c_str());
Note: See TracChangeset for help on using the changeset viewer.