USB: Fix Seamic "failing" to load Singstar api

This commit is contained in:
jackun 2020-12-24 03:56:52 +02:00
parent 74336d952d
commit 4ab7d78574
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3
2 changed files with 2 additions and 2 deletions

View File

@ -692,7 +692,7 @@ namespace usb_mic
else else
p->actual_length = ret; p->actual_length = ret;
#if defined(_DEBUG) && _MSC_VER > 1800 #if 0 //defined(_DEBUG) && _MSC_VER > 1800
if (!file) if (!file)
{ {
char name[1024] = {0}; char name[1024] = {0};

View File

@ -411,8 +411,8 @@ namespace usb_pad
api = wstr_to_str(tmp); api = wstr_to_str(tmp);
#else #else
if (!LoadSetting(nullptr, port, usb_mic::SingstarDevice::TypeName(), N_DEVICE_API, api)) if (!LoadSetting(nullptr, port, usb_mic::SingstarDevice::TypeName(), N_DEVICE_API, api))
#endif
return nullptr; return nullptr;
#endif
USBDevice* mic = usb_mic::SingstarDevice::CreateDevice(port, api); USBDevice* mic = usb_mic::SingstarDevice::CreateDevice(port, api);
if (!mic) if (!mic)