mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user