diff --git a/build/src/CMakeFiles/hook_aurora.dir/l_squirrel.cpp.o b/build/src/CMakeFiles/hook_aurora.dir/l_squirrel.cpp.o index e659c91..ba67dc9 100644 Binary files a/build/src/CMakeFiles/hook_aurora.dir/l_squirrel.cpp.o and b/build/src/CMakeFiles/hook_aurora.dir/l_squirrel.cpp.o differ diff --git a/src/l_squirrel.cpp b/src/l_squirrel.cpp index 7213996..a645a8f 100644 --- a/src/l_squirrel.cpp +++ b/src/l_squirrel.cpp @@ -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 }