Skip to content

Commit

Permalink
Add Wireless iDevice Support
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryHuangHD committed Oct 19, 2020
1 parent bf9bfb2 commit e8db7d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions AltServer/DeviceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,16 +1169,16 @@ std::vector<std::shared_ptr<Device>> DeviceManager::availableDevices(bool includ
std::vector<std::shared_ptr<Device>> 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;
}

for (int i = 0; i < count; i++)
{
char *udid = udids[i];
char *udid = devices[i]->udid;

idevice_t device = NULL;

Expand Down Expand Up @@ -1247,7 +1247,7 @@ std::vector<std::shared_ptr<Device>> DeviceManager::availableDevices(bool includ
}
}

idevice_device_list_free(udids);
idevice_device_list_extended_free(devices);

return availableDevices;
}
Expand Down

0 comments on commit e8db7d9

Please sign in to comment.