在 Corona 中执行任意代码
Corona 中是否可以执行任意 lua 代码?他们禁用了 loadfile、loadstring 和 dofile。还有其他方法可以做到这一点吗?
Is it possible to execute any arbitrary lua code in Corona? They've disabled loadfile, loadstring, and dofile. Are there any other ways to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
他们禁用它是有原因的。苹果的限制不允许这样做,因此他们因此将其完全删除。我想更不用说它会让 Corona 更加安全。
There's a reason they've disabled it. Apple's restrictions don't allow it, so they took it out altogether for that reason. Not to mention it makes Corona more secure, I suppose.
您也许能够通过 Corona 企业许可证启用您提到的功能(尽管如果您是小商店/独立开发人员,这相对昂贵。)
You might be able to enable the features you've mentioned with a Corona enterprise license (although that's relatively spendy if you're a small shop/independent developer.)