You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
[Export] Write text server data from memory, instead of using temporary file.
This commit is contained in:
@@ -42,6 +42,7 @@ void TextServerExtension::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_get_support_data_filename);
|
||||
GDVIRTUAL_BIND(_get_support_data_info);
|
||||
GDVIRTUAL_BIND(_save_support_data, "filename");
|
||||
GDVIRTUAL_BIND(_get_support_data);
|
||||
|
||||
GDVIRTUAL_BIND(_is_locale_right_to_left, "locale");
|
||||
|
||||
@@ -402,6 +403,12 @@ bool TextServerExtension::save_support_data(const String &p_filename) const {
|
||||
return ret;
|
||||
}
|
||||
|
||||
PackedByteArray TextServerExtension::get_support_data() const {
|
||||
PackedByteArray ret;
|
||||
GDVIRTUAL_CALL(_get_support_data, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool TextServerExtension::is_locale_right_to_left(const String &p_locale) const {
|
||||
bool ret = false;
|
||||
GDVIRTUAL_CALL(_is_locale_right_to_left, p_locale, ret);
|
||||
|
||||
Reference in New Issue
Block a user