| 3329 | } |
| 3330 | |
| 3331 | void EditorExportPlatformAndroid::_remove_copied_libs(String p_gdextension_libs_path) { |
| 3332 | print_verbose("Removing previously installed libraries..."); |
| 3333 | Error error; |
| 3334 | String libs_json = FileAccess::get_file_as_string(p_gdextension_libs_path, &error); |
| 3335 | if (error || libs_json.is_empty()) { |
| 3336 | print_verbose("No previously installed libraries found"); |
| 3337 | return; |
| 3338 | } |
| 3339 | |
| 3340 | JSON json; |
| 3341 | error = json.parse(libs_json); |
| 3342 | ERR_FAIL_COND_MSG(error, "Error parsing \"" + libs_json + "\" on line " + itos(json.get_error_line()) + ": " + json.get_error_message()); |
| 3343 | |
| 3344 | Vector<String> libs = json.get_data(); |
| 3345 | Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_RESOURCES); |
| 3346 | for (int i = 0; i < libs.size(); i++) { |
| 3347 | print_verbose("Removing previously installed library " + libs[i]); |
| 3348 | da->remove(libs[i]); |
| 3349 | } |
| 3350 | da->remove(p_gdextension_libs_path); |
| 3351 | } |
| 3352 | |
| 3353 | String EditorExportPlatformAndroid::join_list(const List<String> &p_parts, const String &p_separator) { |
| 3354 | String ret; |
nothing calls this directly
no test coverage detected