Use ffi/lulip.lua from koreader-base; change package.path

This commit is contained in:
Paulo Matias
2013-08-19 10:58:42 -03:00
parent ed7d4070c0
commit 2492ca247a
2 changed files with 2 additions and 182 deletions

View File

@@ -1,7 +1,7 @@
#!./koreader-base
require "defaults"
package.path = "./frontend/?.lua"
package.path = "./frontend/?.lua;./?.lua"
package.cpath = "/usr/lib/lua/?.so"
require "ui/uimanager"
require "ui/widget/infomessage"
@@ -118,7 +118,7 @@ while argidx <= #ARGV do
elseif arg == "-d" then
Dbg:turnOn()
elseif arg == "-p" then
require "lulip"
lulip = require("ffi/lulip")
Profiler = lulip:new()
pcall(function()
-- set maxrows only if the optional arg is numeric