MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / FixPath

Function FixPath

src/Abyss/FileSystem/CASC.cpp:120–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118CASC::~CASC() { CascCloseStorage(_storage); }
119
120static std::string FixPath(std::string_view str) {
121 absl::ConsumePrefix(&str, "/");
122 absl::ConsumePrefix(&str, "\\");
123 return absl::StrCat("data:", str);
124}
125
126InputStream CASC::load(std::string_view fileName) { return InputStream(std::make_unique<CASCStream>(_storage, FixPath(fileName))); }
127

Callers 2

loadMethod · 0.85
hasMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected