From e3af97b932405ce6861591e5d6af630bc8a501aa Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 31 Mar 2017 16:48:12 +0200 Subject: [PATCH] Fixed config files for controller which already have default settings. --- config/ConfigParser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/ConfigParser.cpp b/config/ConfigParser.cpp index ae6eb94..5891640 100644 --- a/config/ConfigParser.cpp +++ b/config/ConfigParser.cpp @@ -254,6 +254,8 @@ int ConfigParser::getSlotController(std::string identify){ this->pid = pid; DeviceInfo deviceinfo; memset(&deviceinfo,0,sizeof(deviceinfo)); + deviceinfo.vidpid.vid = vid; + deviceinfo.vidpid.pid = pid; int result = ControllerPatcherUtils::getDeviceInfoFromVidPid(&deviceinfo); int slot = deviceinfo.slotdata.deviceslot; int hid = 0;