Ignore:
Timestamp:
01/24/17 17:55:00 (8 years ago)
Author:
epyon
Message:
  • temporary_proxy implemented
  • table_guard now uses temporary_proxy as main read functionality
File:
1 edited

Legend:

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

    r534 r539  
    1818bool nv::program_manager::load_resource( lua::table_guard& table, shash64 id )
    1919{
    20         NV_LOG_DEBUG( table.get_string("id") );
     20        NV_LOG_DEBUG( table["id"].get_string() );
    2121        string_buffer vsource;
    2222        string_buffer fsource;
    2323        string_buffer header( m_shader_head );
    24         if ( table.is_table("common") )
     24        if ( table["common"].is_table() )
    2525        {
    2626                lua::table_guard common( table, "common" );
     
    6161        c_file_system fs;
    6262        string_buffer out( append );
    63         if ( table.is_string( "files" ) )
     63        if ( table["files"].is_string() )
    6464        {
    65                 out.append( file_to_string( table.get_string( "files" ) ) );
     65                out.append( file_to_string( table["files"].get_string() ) );
    6666        }
    67         else if ( table.is_table( "files" ) )
     67        else if ( table["files"].is_table() )
    6868        {
    6969                lua::table_guard inctable( table, "files" );
     
    7777        }
    7878
    79         if ( table.is_string( "file" ) )
     79        if ( table["file"].is_string() )
    8080        {
    81                 const_string data = file_to_string( table.get_string( "file" ) );
     81                const_string data = file_to_string( table["file"].get_string() );
    8282                out.append( "#line 1\n" + data );
    8383        }
    8484
    85         if ( table.is_string( "source" ) )
     85        if ( table["source"].is_string() )
    8686        {
    87                 out.append( table.get_string( "source" ) );
     87                out.append( table["source"].get_string() );
    8888        }
    8989        return out;
Note: See TracChangeset for help on using the changeset viewer.