File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -308,18 +308,8 @@ void Visualizer::SaveSettings()
308
308
silent_bkgd = FALSE ;
309
309
}
310
310
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" );
323
313
324
314
// Open settings file
325
315
outfile.open (filename);
You can’t perform that action at this time.
0 commit comments