mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
device recognition now fully automatic
This commit is contained in:
10
util.c
10
util.c
@@ -46,9 +46,19 @@ static int utf8charcode(lua_State *L) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int isEmulated(lua_State *L) {
|
||||
#ifdef EMULATE_READER
|
||||
lua_pushinteger(L, 1);
|
||||
#else
|
||||
lua_pushinteger(L, 0);
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const struct luaL_Reg util_func[] = {
|
||||
{"gettime", gettime},
|
||||
{"utf8charcode", utf8charcode},
|
||||
{"isEmulated", isEmulated},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user