diff --git a/build/.cmake/api/v1/reply/index-2024-10-24T01-56-56-0644.json b/build/.cmake/api/v1/reply/index-2024-10-24T02-06-17-0355.json similarity index 100% rename from build/.cmake/api/v1/reply/index-2024-10-24T01-56-56-0644.json rename to build/.cmake/api/v1/reply/index-2024-10-24T02-06-17-0355.json diff --git a/build/.ninja_deps b/build/.ninja_deps index 6c219ab..02ef7f1 100644 Binary files a/build/.ninja_deps and b/build/.ninja_deps differ diff --git a/build/.ninja_log b/build/.ninja_log index ae56c16..d80af5a 100644 --- a/build/.ninja_log +++ b/build/.ninja_log @@ -65,3 +65,8 @@ 4883 6154 1729684377329806269 src/CMakeFiles/hook_aurora.dir/asmjit/x86/x86instapi.cpp.o 55312cdd386738a1 5903 6106 1729684377280806138 src/CMakeFiles/hook_aurora.dir/Tool.cpp.o 9a35092c98186d43 3363 3828 1729684375004800033 src/CMakeFiles/hook_aurora.dir/asmjit/core/string.cpp.o 320c6c01f3f1c4 +2 1177 1729735580104369053 src/CMakeFiles/hook_aurora.dir/controller.cpp.o cff6ea141f58eb3b +4 7540 1729735586464406154 src/CMakeFiles/hook_aurora.dir/l_socket.cpp.o 34d6fe34942d7baf +3 7612 1729735586538406585 src/CMakeFiles/hook_aurora.dir/df_main.cpp.o 3f98864f0f9032b2 +3 11598 1729735590523429832 src/CMakeFiles/hook_aurora.dir/l_squirrel.cpp.o 6d661aaa246b9ac6 +11598 12235 1729735591155433519 /dp_s/lib/libAurora.so ee421aa36b38a808 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 32ee0f2..38f6c4d 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/include/SqrReg_Game.hpp b/include/SqrReg_Game.hpp index 8501908..8fd8385 100644 --- a/include/SqrReg_Game.hpp +++ b/include/SqrReg_Game.hpp @@ -10,7 +10,7 @@ #include "croncpp.h" #include "l_socket.h" #include -#include +// #include #include #include #include @@ -942,18 +942,18 @@ static SQInteger L_Conversion(HSQUIRRELVM v) sq_getinteger(v, 3, &Type); std::string traditionalStr = std::string(Str); + sq_pushnull(v); + // opencc_t ot; + // if (Type == 0) + // ot = opencc_open(OPENCC_DEFAULT_CONFIG_TRAD_TO_SIMP); + // else if (Type == 1) + // ot = opencc_open(OPENCC_DEFAULT_CONFIG_SIMP_TO_TRAD); - opencc_t ot; - if (Type == 0) - ot = opencc_open(OPENCC_DEFAULT_CONFIG_TRAD_TO_SIMP); - else if (Type == 1) - ot = opencc_open(OPENCC_DEFAULT_CONFIG_SIMP_TO_TRAD); - - char *NewStr = opencc_convert_utf8(ot, traditionalStr.c_str(), traditionalStr.length()); - std::string RetStr(NewStr); - sq_pushstring(v, RetStr.c_str(), -1); - opencc_convert_utf8_free(NewStr); - opencc_close(ot); + // char *NewStr = opencc_convert_utf8(ot, traditionalStr.c_str(), traditionalStr.length()); + // std::string RetStr(NewStr); + // sq_pushstring(v, RetStr.c_str(), -1); + // opencc_convert_utf8_free(NewStr); + // opencc_close(ot); return 1; } diff --git a/include/l_squirrel.h b/include/l_squirrel.h index 618ea7f..02d0f4c 100644 --- a/include/l_squirrel.h +++ b/include/l_squirrel.h @@ -11,7 +11,6 @@ #include "sqstdmath.h" #include "sqstdstring.h" #include "sqstdsystem.h" -#include "sqstddio.h" #include "Tool.h" #include #include