Changeset 431 for trunk/src/engine


Ignore:
Timestamp:
07/21/15 13:31:23 (10 years ago)
Author:
epyon
Message:
  • hash storage type
  • string hash storage type
  • several minor fixes
  • more cleanups needed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine/resource_system.cc

    r399 r431  
    1515}
    1616
    17 nv::resource_id nv::resource_manager_base::load_resource( const std::string& id )
     17nv::resource_id nv::resource_manager_base::load_resource( const string_view& id )
    1818{
    1919        lua::table_guard table( m_lua, lua::path( get_storage_name(), id ) );
     
    3232                lua::table_guard sub_table( table, i+1 );
    3333                resource_id rid = load_resource( sub_table );
    34                 if ( rid != 0 ) m_names[ sub_table.get_std_string("id") ] = rid;
     34                if ( rid != 0 ) m_names[ sub_table.get_string_hash_64("id") ] = rid;
    3535        }
    3636}
    3737
    38 nv::resource_type_id nv::resource_system::register_resource_type( const std::string& /*name*/, resource_manager_base* /*manager*/ )
     38nv::resource_type_id nv::resource_system::register_resource_type( const string_view& /*name*/, resource_manager_base* /*manager*/ )
    3939{
    4040        return 0;
    4141}
    4242
    43 nv::resource_type_id nv::resource_system::get_resource_type_id( const std::string& /*name*/ ) const
     43nv::resource_type_id nv::resource_system::get_resource_type_id( const string_view& /*name*/ ) const
    4444{
    4545        return 0;
Note: See TracChangeset for help on using the changeset viewer.