MCPcopy Create free account
hub / github.com/MemNixFS/MemNixFS / plugin_name_from_path

Function plugin_name_from_path

src/api/lmpfs.cpp:510–512  ·  view source on GitHub ↗

Compute the canonical plugin name: file stem without extension. `foo.plugin.dll` → `foo.plugin`; `core.dll` → `core`.

Source from the content-addressed store, hash-verified

508// Compute the canonical plugin name: file stem without extension.
509// `foo.plugin.dll` → `foo.plugin`; `core.dll` → `core`.
510std::string plugin_name_from_path(const std::filesystem::path& p) {
511 return p.stem().string();
512}
513
514// Try to load + initialise plugins from one directory.
515int load_plugins_from(Engine* eng, vfs::DirNode* plugins_root,

Callers 1

load_plugins_fromFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected