Truly silence the attempt at loading SDL2

Expanding on https://github.com/koreader/koreader/pull/7682
ffi/input, loaded by the Device singleton, also needs to know that in
order to setup the proper input backend for SDL2.

Requires https://github.com/koreader/koreader-base/pull/1372 because
that's where the machinery for those checks live.
This commit is contained in:
NiLuJe
2021-05-19 03:54:08 +02:00
parent d56a944b79
commit 7c7f9e6ebb
2 changed files with 18 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ ffi.load = function(lib)
if not lib_path then
io.write("ffi.load (warning): ", re, "\n")
error('Not able to load dynamic library: ' .. lib)
error("Not able to load dynamic library: " .. lib)
else
io.write("ffi.load (assisted searchpath): ", lib_path, "\n")
return ffi_load(lib_path)