Closed piiertho closed 4 years ago
I'm a bit confused, isn't Godot supposed to return us a Variant in any case, not directly a Godot_string ?
Yeah, I thought it was a godot_variant
not a godot_string
. Can you confirm @piiertho?
I have a better way to do, will be fixed with rework of allocations in icalls.
We were trying to convert a pointer to KString, this fixes this behaviour by first reinterpret pointer as
godot_string
, then read its value and anding by converting value to Kotlin String.