mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-09-12 18:45:20 -05:00
Refactor IS Nitro to IS Devices
This commit is contained in:
@@ -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++) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user