MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / PrepareAddonPath

Function PrepareAddonPath

PanzerChasm/vfs.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static std::string PrepareAddonPath( const char* const addon_path )
55{
56 if( addon_path == nullptr )
57 return "";
58
59 std::string result= addon_path;
60 if( !result.empty() )
61 {
62 if( !( result.back() == '/' || result.back() == '\\' ) )
63 result.push_back( '/' );
64 }
65 return result;
66}
67
68Vfs::Vfs(
69 const char* archive_file_name,

Callers 1

VfsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected