Files
koreader-mirror/setupkoenv.lua
Benoit Pierre a1edbbf0c4 use new ffi.loadlib helper (#12545)
To load our native libraries.
2024-09-26 18:36:09 +02:00

10 lines
267 B
Lua

-- Set search path for `require()`.
package.path =
"common/?.lua;frontend/?.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")