mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
[ctrtool] Misc
This commit is contained in:
@@ -135,6 +135,7 @@ utf16char_t* strcopy_UTF8toUTF16(const char *src)
|
||||
|
||||
iconv_t cd = iconv_open("UTF-16LE", "UTF-8");
|
||||
iconv(cd, &in, &in_bytes, &out, &out_bytes);
|
||||
iconv_close(cd);
|
||||
return dst;
|
||||
}
|
||||
|
||||
@@ -163,6 +164,7 @@ char* strcopy_UTF16toUTF8(const utf16char_t *src)
|
||||
|
||||
iconv_t cd = iconv_open("UTF-8", "UTF-16LE");
|
||||
iconv(cd, &in, &in_bytes, &out, &out_bytes);
|
||||
iconv_close(cd);
|
||||
return dst;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user