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

Method pathFix

src/tools/uieditor/uieditor.cpp:577–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577std::string App::pathFix( std::string path ) {
578 if ( !path.empty() && ( path.at( 0 ) != '/' || !( Sys::getPlatform() == "Windows" &&
579 path.size() > 3 && path.at( 1 ) != ':' ) ) ) {
580 return mBasePath + path;
581 }
582
583 return path;
584}
585
586void App::loadUITheme( std::string themePath ) {
587 TextureAtlasLoader tgl( themePath );

Callers

nothing calls this directly

Calls 3

atMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected