feat(脚本引擎): 添加SquirrelVM运行功能并重构主脚本

为SquirrelVM添加run()方法用于执行脚本中的main函数
重构main.nut脚本结构,将打印和错误调用封装到main函数中
在Application启动时自动执行脚本的main函数
This commit is contained in:
2026-03-31 04:16:26 +08:00
parent d25ff7655b
commit ac4d2ffc9a
4 changed files with 38 additions and 3 deletions

View File

@@ -1,2 +1,8 @@
print("中文测试!")
error("中文测试错误!")
function main()
{
print("中文测试!")
error("中文测试错误!")
}