Removed searchers[4].
This commit is contained in:
parent
5ffe4eae90
commit
b8da46e10e
|
@ -23,8 +23,8 @@ package.path = USERDIR .. '/?/init.lua;' .. package.path
|
|||
local dynamic_suffix = PLATFORM == "Mac OS X" and 'lib' or (PLATFORM == "Windows" and 'dll' or 'so')
|
||||
package.cpath = DATADIR .. '/?.' .. dynamic_suffix .. ";" .. USERDIR .. '/?.' .. dynamic_suffix
|
||||
package.native_plugins = {}
|
||||
package.searchers[3] = function(modname)
|
||||
package.searchers = { package.seachers[1], package.searchers[2], function(modname)
|
||||
local path = package.searchpath(modname, package.cpath)
|
||||
if not path then return nil end
|
||||
return system.load_native_plugin, path
|
||||
end
|
||||
end }
|
||||
|
|
Loading…
Reference in New Issue