From 5f786e649a0f6cae9a15d6ee6903c2e6c93ffae4 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Mon, 23 Dec 2019 15:37:15 -0600 Subject: [PATCH] Fix Hue+ initialization on Windows --- Controllers/HuePlusController/HuePlusControllerDetect.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Controllers/HuePlusController/HuePlusControllerDetect.cpp b/Controllers/HuePlusController/HuePlusControllerDetect.cpp index 5a03db10..374b3ad3 100644 --- a/Controllers/HuePlusController/HuePlusControllerDetect.cpp +++ b/Controllers/HuePlusController/HuePlusControllerDetect.cpp @@ -37,7 +37,6 @@ void DetectHuePlusControllers(std::vector &rgb_controllers) #ifdef WIN32 GetModuleFileName(NULL, filename, 2048); strcpy(filename, std::string(filename).substr(0, std::string(filename).find_last_of("\\/")).c_str()); - strcat(filename, "\\settings.txt"); #else snprintf(arg1, 64, "/proc/%d/exe", getpid()); readlink(arg1, filename, 1024); @@ -86,4 +85,4 @@ void DetectHuePlusControllers(std::vector &rgb_controllers) } -} /* DetectHuePlusControllers() */ \ No newline at end of file +} /* DetectHuePlusControllers() */