MCPcopy Create free account
hub / github.com/TankOs/SFGUI / GetFilename

Method GetFilename

src/SFGUI/ResourceManager.cpp:137–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137std::string ResourceManager::GetFilename( const std::string& path, const ResourceLoader& loader ) {
138 auto ident = loader.GetIdentifier() + ":";
139 auto ident_pos = path.find( ident );
140
141 if( ident_pos == std::string::npos || ident_pos != 0 ) {
142 return path;
143 }
144
145 return path.substr( ident.size() );
146}
147
148void ResourceManager::AddFont( const std::string& path, std::shared_ptr<const sf::Font> font ) {
149 m_fonts[path] = font;

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected