1212
This commit is contained in:
parent
2dddf36c21
commit
90829e2e86
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue