Compute the canonical plugin name: file stem without extension. `foo.plugin.dll` → `foo.plugin`; `core.dll` → `core`.
| 508 | // Compute the canonical plugin name: file stem without extension. |
| 509 | // `foo.plugin.dll` → `foo.plugin`; `core.dll` → `core`. |
| 510 | std::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. |
| 515 | int load_plugins_from(Engine* eng, vfs::DirNode* plugins_root, |