MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / _remove_copied_libs

Method _remove_copied_libs

platform/android/export/export_plugin.cpp:3331–3351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3329}
3330
3331void 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
3353String EditorExportPlatformAndroid::join_list(const List<String> &p_parts, const String &p_separator) {
3354 String ret;

Callers

nothing calls this directly

Calls 9

itosFunction · 0.85
get_error_messageMethod · 0.80
sizeMethod · 0.65
createFunction · 0.50
is_emptyMethod · 0.45
parseMethod · 0.45
get_error_lineMethod · 0.45
get_dataMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected