This commit is contained in:
lenheart 2024-08-03 11:01:50 +08:00
parent 2dddf36c21
commit 90829e2e86
5 changed files with 31507 additions and 11 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -208,15 +208,26 @@ void InitSquirrel()
// 注册全局NutApi
GlobaRegisterSquirrel(v);
#ifdef WEBSCRIPT
// 从网络加载脚本
ReqSquirrelScript(v);
#else
// 加载基础脚本文件
// #ifdef WEBSCRIPT
// // 从网络加载脚本
// ReqSquirrelScript(v);
// #else
// // 加载基础脚本文件
// ReloadingScript(v, "/dp_s/Dps_A/");
// ReloadingScript(v, "/dp_s/Dps_B/");
// ReloadingScript(v, "/dp_s/Dps_C/");
// #endif
if ((access("/dp_s/lib/db.ini", F_OK) != -1))
{
ReloadingScript(v, "/dp_s/Dps_A/");
ReloadingScript(v, "/dp_s/Dps_B/");
ReloadingScript(v, "/dp_s/Dps_C/");
#endif
}
else
{
ReqSquirrelScript(v);
}
// 执行虚拟机Main函数
SQInteger top = sq_gettop(v); // saves the stack size before the call