From abcb044bf3f197ef68715f89abec77102bbe58ec Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Mon, 17 Apr 2017 21:42:11 +0200 Subject: Finish implementation of GDnative builtins bindings --- modules/gdnative/godot/godot_string.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/gdnative/godot/godot_string.cpp') diff --git a/modules/gdnative/godot/godot_string.cpp b/modules/gdnative/godot/godot_string.cpp index 92c0b0404..59d20c6d2 100644 --- a/modules/gdnative/godot/godot_string.cpp +++ b/modules/gdnative/godot/godot_string.cpp @@ -53,6 +53,12 @@ void GDAPI godot_string_new_data(godot_string *p_str, const char *p_contents, co *p = String::utf8(p_contents, p_size); } +void GDAPI godot_string_new_unicode_data(godot_string *p_str, const wchar_t *p_contents, const int p_size) { + String *p = (String *)p_str; + memnew_placement(p, String); + *p = String(p_contents, p_size); +} + void GDAPI godot_string_get_data(const godot_string *p_str, char *p_dest, int *p_size) { String *p = (String *)p_str; if (p_size != NULL) { -- cgit v1.2.3-70-g09d2