-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sdl: use versioned library, cleanup ffi/util
helpers
#1929
sdl: use versioned library, cleanup ffi/util
helpers
#1929
Conversation
In preparation of koreader/koreader-base/pull/1929.
159e565
to
62e0cec
Compare
(nit: typo in the commit msg if this is to be a rebase, ffi/input is gone, not ffi/util ;)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions, but good to go on principle ;).
Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @benoit-pierre)
ffi/util.lua
line 685 at r1 (raw file):
libSDL2, err = util.ffiLoadCandidates(candidates) if not libSDL2 then print("SDL2 not loaded:", libSDL2)
Shouldn't this still be printing err
? libSDL2
is always false
in this branch.
ffi/util.lua
line 688 at r1 (raw file):
end end return libSDL2 or nil
Would returning a false
libSDL2
(as opposed to nil
) here be an issue for ffi/SDL2_0.lua
?
Or, perhaps a better question would be: should ffi/SDL2_0.lua
handle failure to load SDL2 in a specific way?
62e0cec
to
34dbf6f
Compare
34dbf6f
to
6efa4c3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @benoit-pierre)
Yep.
No (it will fail in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @benoit-pierre)
This change is