Skip to content

Commit 0043929

Browse files
Fix settings file name
1 parent 1fa00fa commit 0043929

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

KeyboardVisualizerCommon/Visualizer.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -308,18 +308,8 @@ void Visualizer::SaveSettings()
308308
silent_bkgd = FALSE;
309309
}
310310

311-
//Get file path in executable directory
312-
//#ifdef WIN32
313-
// GetModuleFileName(NULL, filename, 2048);
314-
// strcpy(filename, std::string(filename).substr(0, std::string(filename).find_last_of("\\/")).c_str());
315-
// strcat(filename, "\\settings.txt");
316-
//#else
317-
// char arg1[64];
318-
// snprintf(arg1, 64, "/proc/%d/exe", getpid());
319-
// readlink(arg1, filename, 1024);
320-
// strcpy(filename, std::string(filename).substr(0, std::string(filename).find_last_of("\\/")).c_str());
321-
// strcat(filename, "/settings.txt");
322-
//#endif
311+
//Set filename
312+
strcpy(filename, "settings.txt");
323313

324314
//Open settings file
325315
outfile.open(filename);

0 commit comments

Comments
 (0)