Add a "keep" import mode to keep files as-is and export them.
This commit is contained in:
parent
3334a53ac3
commit
8d64f3bd76
5 changed files with 122 additions and 45 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue