Fixed config files for controller which already have default settings.

This commit is contained in:
Maschell 2017-03-31 16:48:12 +02:00
parent 1c3935dd93
commit e3af97b932

View File

@ -254,6 +254,8 @@ int ConfigParser::getSlotController(std::string identify){
this->pid = pid; this->pid = pid;
DeviceInfo deviceinfo; DeviceInfo deviceinfo;
memset(&deviceinfo,0,sizeof(deviceinfo)); memset(&deviceinfo,0,sizeof(deviceinfo));
deviceinfo.vidpid.vid = vid;
deviceinfo.vidpid.pid = pid;
int result = ControllerPatcherUtils::getDeviceInfoFromVidPid(&deviceinfo); int result = ControllerPatcherUtils::getDeviceInfoFromVidPid(&deviceinfo);
int slot = deviceinfo.slotdata.deviceslot; int slot = deviceinfo.slotdata.deviceslot;
int hid = 0; int hid = 0;