diff options
| author | 2015-05-20 15:02:24 +0200 | |
|---|---|---|
| committer | 2015-05-20 15:02:24 +0200 | |
| commit | 7bb75e575b5f6a555a0651057c0cb5b30f93a9d9 (patch) | |
| tree | c99cd7056aa20ce999c678501d6733f3ad3662c2 /src/modmanager_static.cpp | |
| parent | m_spanningtree Fix harmless valgrind warning about uninit var usage on unload (diff) | |
Allow modules to be called as "foo" instead of "m_foo.so"
Diffstat (limited to 'src/modmanager_static.cpp')
| -rw-r--r-- | src/modmanager_static.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modmanager_static.cpp b/src/modmanager_static.cpp index ac127b703..98ed26c67 100644 --- a/src/modmanager_static.cpp +++ b/src/modmanager_static.cpp @@ -80,8 +80,9 @@ class AllModule : public Module MODULE_INIT(AllModule) -bool ModuleManager::Load(const std::string& name, bool defer) +bool ModuleManager::Load(const std::string& inputname, bool defer) { + const std::string name = ExpandModName(inputname); modmap::iterator it = modlist->find(name); if (it == modlist->end()) return false; |
