Changeset 539 for trunk/src/engine/program_manager.cc
- Timestamp:
- 01/24/17 17:55:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/program_manager.cc
r534 r539 18 18 bool nv::program_manager::load_resource( lua::table_guard& table, shash64 id ) 19 19 { 20 NV_LOG_DEBUG( table .get_string("id") );20 NV_LOG_DEBUG( table["id"].get_string() ); 21 21 string_buffer vsource; 22 22 string_buffer fsource; 23 23 string_buffer header( m_shader_head ); 24 if ( table .is_table("common") )24 if ( table["common"].is_table() ) 25 25 { 26 26 lua::table_guard common( table, "common" ); … … 61 61 c_file_system fs; 62 62 string_buffer out( append ); 63 if ( table .is_string( "files") )63 if ( table["files"].is_string() ) 64 64 { 65 out.append( file_to_string( table .get_string( "files") ) );65 out.append( file_to_string( table["files"].get_string() ) ); 66 66 } 67 else if ( table .is_table( "files") )67 else if ( table["files"].is_table() ) 68 68 { 69 69 lua::table_guard inctable( table, "files" ); … … 77 77 } 78 78 79 if ( table .is_string( "file") )79 if ( table["file"].is_string() ) 80 80 { 81 const_string data = file_to_string( table .get_string( "file") );81 const_string data = file_to_string( table["file"].get_string() ); 82 82 out.append( "#line 1\n" + data ); 83 83 } 84 84 85 if ( table .is_string( "source") )85 if ( table["source"].is_string() ) 86 86 { 87 out.append( table .get_string( "source") );87 out.append( table["source"].get_string() ); 88 88 } 89 89 return out;
Note: See TracChangeset
for help on using the changeset viewer.