Fix LED Strips on Windows
This commit is contained in:
parent
c8a1363b35
commit
68b0dc9e2e
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue