Rewrite the c module loader, adding a search path (fixes #1050)

Note: also removes the restriction that only fused games can load libraries from
their save folders.

--HG--
branch : minor
This commit is contained in:
Bart van Strien
2016-02-26 15:24:01 +01:00
parent 2f7492667a
commit 33341de7bc
4 changed files with 68 additions and 22 deletions
@@ -97,6 +97,7 @@ public:
bool areSymlinksEnabled() const;
std::vector<std::string> &getRequirePath();
std::vector<std::string> &getCRequirePath();
void allowMountingForPath(const std::string &path);
@@ -127,6 +128,7 @@ private:
// Search path for require
std::vector<std::string> requirePath;
std::vector<std::string> cRequirePath;
std::vector<std::string> allowedMountPaths;