Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 22, 2006, 6:38:28 PM (18 years ago)
Author:
bensch
Message:

ResourceLoading is working perfectly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/loading/resource.cc

    r9785 r9786  
    6161    return (Resource::_mainGlobalPath + File(fileName)).name();
    6262
    63 
    6463  return std::string("/home/bensch/svn/orxonox/data/") + fileName;
    6564
     
    7271
    7372  for (unsigned int i = 0; i < _type->storedResources().size(); ++i)
    74     if (_type->storedResources()[i]->_pointer->loadString() == loadString)
    75       return _type->storedResources()[i]->_pointer;
     73  {
     74    printf("Compare %s with %s\n", _type->storedResources()[i]->loadString().c_str(), loadString.c_str());
     75    if (_type->storedResources()[i]->loadString() == loadString)
     76      return _type->storedResources()[i];
     77  }
    7678
    7779  return NULL;
     
    9496
    9597void Resource::addResource(Resource::Pointer* pointer)
    96 {}
     98{
     99  this->_type->addResource(pointer);
     100}
    97101
    98102
     
    114118
    115119
     120void Resource::Type::addResource(Resource::Pointer* resource)
     121{
     122  this->_storedResources.push_back(resource);
    116123
    117 
    118 
    119 
    120 
     124}
    121125
    122126
    123127Resource::Pointer::Pointer(const std::string& loadString, const Resource::KeepLevel& keeplevel)
    124 {
    125 }
     128  : _loadString(loadString), _keepLevel(keeplevel)
     129{}
     130
    126131
    127132void Resource::Type::setID(int id)
Note: See TracChangeset for help on using the changeset viewer.