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

在安卓端如何导入lua的标准库,如何直接执行lua文件而不是语或者函数 #24

Open
tghjnjvg opened this issue Mar 18, 2020 · 1 comment

Comments

@tghjnjvg
Copy link

在安卓端如何导入lua的标准库,如何直接执行lua文件而不是语或者函数

@vimfung
Copy link
Owner

vimfung commented Mar 19, 2020

lsc库是直接通过通过c api把标准库加载好的了,你只要在需要的地方required就好。至于如何执行lua文件,我的sample里面有可以参考一下,他是放到assets里面的,如果是动态执行lua文件的话,你可能要用evalScriptFromFile方法了

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

2 participants