diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-23 21:10:42 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-23 21:13:32 +0200 |
commit | 15dafc49d3cd0534c44fa568febfad4ac63c5a07 (patch) | |
tree | 01cd393efb09a4deee41973c08444bcb34b109cd /editor/export | |
parent | c06df6779ae8c3145cd7be727102663ccae568e9 (diff) |
[TextServer] Fix ICU data loading and exporting with `internationalization/locale/include_text_server_data` setting.
Diffstat (limited to 'editor/export')
-rw-r--r-- | editor/export/editor_export_platform.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/export/editor_export_platform.cpp b/editor/export/editor_export_platform.cpp index 8da52e20f7..27ca0b84a1 100644 --- a/editor/export/editor_export_platform.cpp +++ b/editor/export/editor_export_platform.cpp @@ -1294,7 +1294,9 @@ Error EditorExportPlatform::export_project_files(const Ref<EditorExportPreset> & } else { // Use default text server data. String icu_data_file = EditorPaths::get_singleton()->get_cache_dir().path_join("tmp_icu_data"); - TS->save_support_data(icu_data_file); + if (!TS->save_support_data(icu_data_file)) { + return ERR_INVALID_DATA; + } Vector<uint8_t> array = FileAccess::get_file_as_bytes(icu_data_file); err = p_func(p_udata, ts_data, array, idx, total, enc_in_filters, enc_ex_filters, key); DirAccess::remove_file_or_error(icu_data_file); |