MCPcopy Create free account
hub / github.com/SpartanJ/eepp / loadFromFile

Method loadFromFile

src/eepp/ui/css/stylesheetparser.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37bool StyleSheetParser::loadFromFile( const std::string& filename ) {
38 if ( !FileSystem::fileExists( filename ) &&
39 PackManager::instance()->isFallbackToPacksActive() ) {
40 std::string path( filename );
41 Pack* pack = PackManager::instance()->exists( path );
42
43 if ( NULL != pack ) {
44 return loadFromPack( pack, path );
45 }
46
47 return false;
48 }
49
50 IOStreamFile stream( filename );
51 return loadFromStream( stream );
52}
53
54bool StyleSheetParser::loadFromPack( Pack* pack, std::string filePackPath ) {
55 if ( NULL == pack )

Callers

nothing calls this directly

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected