Fix LED Strips on Windows

This commit is contained in:
Adam Honse 2019-09-03 20:29:32 -05:00
parent c8a1363b35
commit 68b0dc9e2e

View file

@ -42,9 +42,8 @@ void DetectLEDStripControllers(std::vector<RGBController*> &rgb_controllers)
snprintf(arg1, 64, "/proc/%d/exe", getpid());
readlink(arg1, filename, 1024);
strcpy(filename, std::string(filename).substr(0, std::string(filename).find_last_of("\\/")).c_str());
#endif
strcat(filename, "/settings.txt");
#endif
//Open settings file
infile.open(filename);