This commit is contained in:
parent
bd1ff22b74
commit
be9ef942e9
Binary file not shown.
|
|
@ -218,15 +218,14 @@ void InitSquirrel()
|
|||
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/");
|
||||
ReloadingScript(v, "/dp_s/Dps_B/");
|
||||
ReloadingScript(v, "/dp_s/Dps_C/");
|
||||
}
|
||||
else
|
||||
{
|
||||
ReqSquirrelScript(v);
|
||||
}
|
||||
|
||||
/*
|
||||
// 执行虚拟机Main函数
|
||||
SQInteger top = sq_gettop(v); // saves the stack size before the call
|
||||
sq_pushroottable(v); // pushes the global table
|
||||
|
|
@ -238,12 +237,9 @@ void InitSquirrel()
|
|||
}
|
||||
sq_settop(v, top); // restores the original stack size
|
||||
|
||||
*/
|
||||
/*
|
||||
sq_pushroottable(v);
|
||||
sq_pushstring(v, "sq_ReloadScript", -1);
|
||||
sq_newclosure(v, SqReloadScript, 0); // create a new function
|
||||
sq_newslot(v, -3, SQFalse);
|
||||
sq_pop(v, 1); // pops the root table
|
||||
*/
|
||||
sq_pushroottable(v);
|
||||
sq_pushstring(v, "sq_ReloadScript", -1);
|
||||
sq_newclosure(v, SqReloadScript, 0); // create a new function
|
||||
sq_newslot(v, -3, SQFalse);
|
||||
sq_pop(v, 1); // pops the root table
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue