mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
* implements a Provider singleton, to be used by thirdparty plugins * exporter: support for thirdparty providers * splits plugin loading into two steps: discovery and load 1. get a list of all candidate plugins to load for the different paths 2. sort providers before on the rest of them and try to load them
10 lines
299 B
Lua
10 lines
299 B
Lua
-- Set search path for `require()`.
|
|
package.path =
|
|
"common/?.lua;frontend/?.lua;plugins/exporter.koplugin/?.lua;" ..
|
|
package.path
|
|
package.cpath =
|
|
"common/?.so;common/?.dll;/usr/lib/lua/?.so;" ..
|
|
package.cpath
|
|
-- Setup `ffi.load` override and 'loadlib' helper.
|
|
require("ffi/loadlib")
|