Skip to content
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

Add some way to use data blob instead of a file pointer as a loader #4

Open
alerque opened this issue Oct 31, 2023 · 0 comments
Open

Comments

@alerque
Copy link

alerque commented Oct 31, 2023

I've just bumped into a similar iteration of the problem in #2, but at a different spot in the stack. In my case I'm using a Rust wrapper with mlua, and the Rust side of things is injecting a custom loader that actually just outputs content that is statically linked (C modules) or embeded (Lua modules) in the binary itself. This is working for most Lua stuff, but it is now tripping up Loadkit.

In my case the issue is not just that the searcher uses the wrong paths, its that it isn't even hitting the right loader. I can easily provide some sort of function / hook that loadkit can call to get the contents of a file, but I need to feed it the file data not just return an open Lua file pointer to be used by the function supplied to loadkit.register().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant