Changeset 438 for trunk/src/core/library.cc
- Timestamp:
- 07/23/15 17:29:49 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/library.cc
r437 r438 6 6 7 7 #include "nv/core/library.hh" 8 #include <string>9 8 10 9 #if NV_PLATFORM == NV_WINDOWS … … 74 73 NV_LOG_NOTICE( "library \"", m_name, "\" : loading..." ); 75 74 76 st d::string name( m_name.data(), m_name.length());77 st d::stringext( NV_LIB_EXT );75 string128 name( m_name ); 76 string_view ext( NV_LIB_EXT ); 78 77 79 if ( name.length() < ext.length() || name.substr( name.length() - ext.length(), ext.length() ) != ext)78 if ( name.length() < ext.length() || !name.ends_with( ext ) ) 80 79 { 81 name.append( ext .data(), ext.length());80 name.append( ext ); 82 81 } 83 82 84 m_handle = NV_LIB_OPEN( name. c_str() );83 m_handle = NV_LIB_OPEN( name.data() ); 85 84 86 85 if ( m_handle == NULL ) 87 86 { 88 NV_LOG_NOTICE( "library \"", m_name, "\" : failed to open!" );87 NV_LOG_NOTICE( "library \"", name, "\" : failed to open!" ); 89 88 return false; 90 89 }
Note: See TracChangeset
for help on using the changeset viewer.