111
This commit is contained in:
parent
7348bbdd14
commit
d803ea8fe0
Binary file not shown.
|
|
@ -65,3 +65,8 @@
|
||||||
4883 6154 1729684377329806269 src/CMakeFiles/hook_aurora.dir/asmjit/x86/x86instapi.cpp.o 55312cdd386738a1
|
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
|
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
|
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
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -10,7 +10,7 @@
|
||||||
#include "croncpp.h"
|
#include "croncpp.h"
|
||||||
#include "l_socket.h"
|
#include "l_socket.h"
|
||||||
#include <openssl/md5.h>
|
#include <openssl/md5.h>
|
||||||
#include <opencc/opencc.h>
|
// #include <opencc/opencc.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
|
@ -942,18 +942,18 @@ static SQInteger L_Conversion(HSQUIRRELVM v)
|
||||||
sq_getinteger(v, 3, &Type);
|
sq_getinteger(v, 3, &Type);
|
||||||
|
|
||||||
std::string traditionalStr = std::string(Str);
|
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;
|
// char *NewStr = opencc_convert_utf8(ot, traditionalStr.c_str(), traditionalStr.length());
|
||||||
if (Type == 0)
|
// std::string RetStr(NewStr);
|
||||||
ot = opencc_open(OPENCC_DEFAULT_CONFIG_TRAD_TO_SIMP);
|
// sq_pushstring(v, RetStr.c_str(), -1);
|
||||||
else if (Type == 1)
|
// opencc_convert_utf8_free(NewStr);
|
||||||
ot = opencc_open(OPENCC_DEFAULT_CONFIG_SIMP_TO_TRAD);
|
// 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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
#include "sqstdmath.h"
|
#include "sqstdmath.h"
|
||||||
#include "sqstdstring.h"
|
#include "sqstdstring.h"
|
||||||
#include "sqstdsystem.h"
|
#include "sqstdsystem.h"
|
||||||
#include "sqstddio.h"
|
|
||||||
#include "Tool.h"
|
#include "Tool.h"
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue