mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-04-29 14:59:26 -04:00
27 lines
596 B
C++
27 lines
596 B
C++
#include "nsyshid.h"
|
|
#include "Backend.h"
|
|
#include "BackendEmulated.h"
|
|
#include "BackendLibusb.h"
|
|
|
|
namespace nsyshid::backend
|
|
{
|
|
void AttachDefaultBackends()
|
|
{
|
|
// add libusb backend
|
|
{
|
|
auto backendLibusb = std::make_shared<backend::libusb::BackendLibusb>();
|
|
if (backendLibusb->IsInitialisedOk())
|
|
{
|
|
AttachBackend(backendLibusb);
|
|
}
|
|
}
|
|
// add emulated backend
|
|
{
|
|
auto backendEmulated = std::make_shared<backend::emulated::BackendEmulated>();
|
|
if (backendEmulated->IsInitialisedOk())
|
|
{
|
|
AttachBackend(backendEmulated);
|
|
}
|
|
}
|
|
}
|
|
} // namespace nsyshid::backend
|