Refactor IS Nitro to IS Devices

This commit is contained in:
Lorenzooone
2024-12-11 16:45:59 +01:00
parent 8dc0347414
commit 7d7a481745
33 changed files with 1491 additions and 1317 deletions

View File

@@ -1,5 +1,5 @@
#include "ISNitroMenu.hpp"
#include "usb_is_nitro_acquisition.hpp"
#include "usb_is_device_acquisition.hpp"
#define NUM_TOTAL_MENU_OPTIONS (sizeof(pollable_options)/sizeof(pollable_options[0]))
@@ -75,8 +75,8 @@ void ISNitroMenu::class_setup() {
void ISNitroMenu::insert_data(CaptureDevice* device) {
bool is_capture = false;
#ifdef USE_IS_NITRO_USB
is_capture = is_nitro_is_capture(device);
#ifdef USE_IS_DEVICES_USB
is_capture = is_device_is_capture(device);
#endif
this->num_enabled_options = 0;
for(int i = 0; i < NUM_TOTAL_MENU_OPTIONS; i++) {

View File

@@ -163,7 +163,7 @@ static const LicenseMenuOptionInfo* pollable_options[] = {
&libusb_license_3_option,
&libusb_license_4_option,
#endif
#if defined(USE_IS_NITRO_USB)
#if defined(USE_IS_DEVICES_USB)
&isng_license_0_option,
&isng_license_1_option,
&isng_license_2_option,