Refactor debugging on a device with DAP - now possible with all device types

Co-authored-by: Thaddeus Crews <repiteo@outlook.com>
This commit is contained in:
Ivan Shakhov
2025-08-26 15:22:55 +02:00
parent 6fd949a6dc
commit 49ac9f63fd
6 changed files with 39 additions and 42 deletions

View File

@ -142,10 +142,20 @@ void EditorExport::remove_export_platform(const Ref<EditorExportPlatform> &p_pla
should_reload_presets = true;
}
int EditorExport::get_export_platform_count() {
int EditorExport::get_export_platform_count() const {
return export_platforms.size();
}
int EditorExport::get_export_platform_index_by_name(const String &p_name) {
for (int j = 0; j < get_export_platform_count(); j++) {
Ref<EditorExportPlatform> plat = get_export_platform(j);
if (!plat.is_null() && plat->get_name().nocasecmp_to(p_name) == 0) {
return j;
}
}
return -1;
}
Ref<EditorExportPlatform> EditorExport::get_export_platform(int p_idx) {
ERR_FAIL_INDEX_V(p_idx, export_platforms.size(), Ref<EditorExportPlatform>());