mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-08-15 05:16:48 -05:00
Implement IS Nitro Async USB accesses
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "usb_generic.hpp"
|
||||
#include <thread>
|
||||
|
||||
static bool usb_thread_run = false;
|
||||
static bool usb_initialized = false;
|
||||
static libusb_context* usb_ctx = NULL; // libusb session context
|
||||
|
||||
@@ -13,13 +15,11 @@ void usb_init() {
|
||||
return;
|
||||
}
|
||||
usb_initialized = true;
|
||||
return;
|
||||
}
|
||||
|
||||
void usb_close() {
|
||||
if(usb_initialized) {
|
||||
if(usb_initialized)
|
||||
libusb_exit(usb_ctx);
|
||||
}
|
||||
usb_ctx = NULL;
|
||||
usb_initialized = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user