Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 25, 2006, 11:28:28 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: now it should also be possible, to cache the resources, by suppling a LoadString.
This is vital to loading Resources, when you only know the TypeName and a LoadString, but not the c++-type and the LoadParameters as is the case when loading over the internet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/filesys/directory.h

    r9785 r9823  
    6565  const std::string& operator[](unsigned int fileNumber) const { return this->_fileNames[fileNumber]; };
    6666  /** @returns a formated string containing the FileName, prepended with the directory-Name */
    67   std::string fileNameInDir(unsigned int fileNumber) const { return this->name() + "/" + _fileNames[fileNumber]; };
     67  std::string fileNameInDir(unsigned int fileNumber) const { return this->name() + Directory::delimiter + _fileNames[fileNumber]; };
    6868  /** @returns a File pointing to the File @param fileNumber the fileNumber (must not bigger than fileCount()) */
    6969  File getFile(unsigned int fileNumber) const { return File(fileNameInDir(fileNumber)); };
Note: See TracChangeset for help on using the changeset viewer.