From e8db7d9acbb80e904bcd2d34c04f2e07fb2590ff Mon Sep 17 00:00:00 2001 From: Terry Huang Date: Mon, 19 Oct 2020 14:18:11 +0800 Subject: [PATCH] Add Wireless iDevice Support --- AltServer/DeviceManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AltServer/DeviceManager.cpp b/AltServer/DeviceManager.cpp index fa8626d..beb801f 100755 --- a/AltServer/DeviceManager.cpp +++ b/AltServer/DeviceManager.cpp @@ -1169,8 +1169,8 @@ std::vector> DeviceManager::availableDevices(bool includ std::vector> availableDevices; int count = 0; - char **udids = NULL; - if (idevice_get_device_list(&udids, &count) < 0) + idevice_info_t *devices = NULL; + if (idevice_get_device_list_extended(&devices, &count) < 0) { fprintf(stderr, "ERROR: Unable to retrieve device list!\n"); return availableDevices; @@ -1178,7 +1178,7 @@ std::vector> DeviceManager::availableDevices(bool includ for (int i = 0; i < count; i++) { - char *udid = udids[i]; + char *udid = devices[i]->udid; idevice_t device = NULL; @@ -1247,7 +1247,7 @@ std::vector> DeviceManager::availableDevices(bool includ } } - idevice_device_list_free(udids); + idevice_device_list_extended_free(devices); return availableDevices; }