fix #992 by creating fake command line arguments

This commit is contained in:
chrox
2014-10-16 09:24:59 +08:00
parent 0f40042e57
commit 64b102ebc9

View File

@@ -1,5 +1,6 @@
local A = require("android")
A.dl.library_path = A.dl.library_path .. ":" .. A.dir .. "/libs"
ARGV = {"-d", "/sdcard"}
-- create fake command-line arguments
arg = {"-d", "/sdcard"}
dofile(A.dir.."/reader.lua")