15 if (!_files || !std::filesystem::is_directory(
folder,
ignored))
19 const std::string path =
folder.generic_string();
21 _mounted.insert_or_assign(std::string(
plugin), path);
27 if (
found == _mounted.end())
31 _files->RemoveSearchPath(
found->second.c_str(),
"GAME");
32 _mounted.erase(
found);
void Mount(std::string_view plugin)
void Unmount(std::string_view plugin)
std::filesystem::path ResolvePath(std::string_view relativePath)
a relative path against the base directory. If the path is already absolute, returns it as-is.
static std::string ReadFile(const std::filesystem::path &path)
std::string PluginFile(std::string_view plugin, std::string_view relative)
"addons/voltmod/plugins/<plugin>/<relative>".