2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/spec/unit/commonrequire.lua
2014-10-07 13:06:06 +08:00

24 lines
621 B
Lua

require "defaults"
package.path = "?.lua;common/?.lua;frontend/?.lua;" .. package.path
package.cpath = "?.so;common/?.so;/usr/lib/lua/?.so;" .. package.cpath
-- global reader settings
local DocSettings = require("docsettings")
G_reader_settings = DocSettings:open(".reader")
-- global einkfb for Screen (do not show SDL window)
einkfb = require("ffi/framebuffer")
einkfb.dummy = true
-- init output device
local Screen = require("ui/screen")
Screen:init()
-- init input device (do not show SDL window)
local Input = require("ui/input")
Input.dummy = true
-- turn on debug
local DEBUG = require("dbg")
DEBUG:turnOn()