Add a "keep" import mode to keep files as-is and export them.

This commit is contained in:
Juan Linietsky 2021-03-22 16:41:47 -03:00
parent 3334a53ac3
commit 8d64f3bd76
5 changed files with 122 additions and 45 deletions

View file

@ -874,6 +874,20 @@ Error EditorExportPlatform::export_project_files(const Ref<EditorExportPreset> &
continue;
}
String importer_type = config->get_value("remap", "importer");
if (importer_type == "keep") {
//just keep file as-is
Vector<uint8_t> array = FileAccess::get_file_as_array(path);
err = p_func(p_udata, path, array, idx, total, enc_in_filters, enc_ex_filters, key);
if (err != OK) {
return err;
}
continue;
}
List<String> remaps;
config->get_section_keys("remap", &remaps);