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

Method loadFile

src/Abyss/AbyssEngine.cpp:349–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349FileSystem::InputStream AbyssEngine::loadFile(const std::string_view file_path) {
350 std::string path(file_path);
351 absl::AsciiStrToLower(&path);
352 absl::StrReplaceAll({{"{lang_font}", _locale}, {"{lang}", _lang}}, &path);
353 return _fileProvider.loadFile(path);
354}
355
356bool AbyssEngine::fileExists(const std::string_view file_path) {
357 std::string path(file_path);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected