Changeset 229 for trunk/src/resource_manager.cc
- Timestamp:
- 05/06/14 04:59:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/resource_manager.cc
r45 r229 14 14 } 15 15 16 resource ::ptrresource_manager::get_raw_resource(uint32 id) const16 resource* resource_manager::get_raw_resource(uint32 id) const 17 17 { 18 18 return m_data[ id ]; 19 19 } 20 20 21 resource ::ptrresource_manager::get_raw_resource(const std::string& id) const21 resource* resource_manager::get_raw_resource(const std::string& id) const 22 22 { 23 23 auto i = m_id_map.find( id ); … … 26 26 return m_data[ (unsigned int)i->second ]; 27 27 } 28 return resource::ptr();28 return nullptr; 29 29 } 30 30 31 void resource_manager::register_resource_type( const std::string& name, resource_constructor_func c )31 void resource_manager::register_resource_type( const std::string& type_name, resource_constructor_func c ) 32 32 { 33 m_constructors[ name ] = c;33 m_constructors[ type_name ] = c; 34 34 } 35 35
Note: See TracChangeset
for help on using the changeset viewer.