Not sure how to load .lua files and their globals into the Lua struct
#52
-
|
I want to add user-modding to my game which is made with rust. in the examples I see you loading a chunk, which if I understand correctly, is not a full source file but rather the insides of one lua function, and that's great, but I want to load a full source my basic use-case for example would be to load a stringified |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Loading stringified file.lua: |
Beta Was this translation helpful? Give feedback.
Loading stringified
.luafile into Lua globals should work fine, eg:file.lua: