diff options
author | magian1127 <14800320+magian1127@users.noreply.github.com> | 2021-01-18 16:34:10 +0800 |
---|---|---|
committer | magian1127 <14800320+magian1127@users.noreply.github.com> | 2021-01-19 21:44:07 +0800 |
commit | da234cdbc6a86c2b447ae57a7a5ce2d8090543ea (patch) | |
tree | d95479b1d2fa44da270e98278d937c4bb97eed69 /modules/mono/mono_gd/gd_mono_assembly.cpp | |
parent | f743f8cb9a796d3d61e15d06a160e2236193d15e (diff) |
C # mono supports Unicode code
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_assembly.cpp')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_assembly.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/mono_gd/gd_mono_assembly.cpp b/modules/mono/mono_gd/gd_mono_assembly.cpp index c6920814b9..1fe06bfbee 100644 --- a/modules/mono/mono_gd/gd_mono_assembly.cpp +++ b/modules/mono/mono_gd/gd_mono_assembly.cpp @@ -379,8 +379,8 @@ GDMonoClass *GDMonoAssembly::get_class(MonoClass *p_mono_class) { return match->value(); } - StringName namespace_name = mono_class_get_namespace(p_mono_class); - StringName class_name = mono_class_get_name(p_mono_class); + StringName namespace_name = String::utf8(mono_class_get_namespace(p_mono_class)); + StringName class_name = String::utf8(mono_class_get_name(p_mono_class)); GDMonoClass *wrapped_class = memnew(GDMonoClass(namespace_name, class_name, p_mono_class, this)); |