INI option log_file_entry.
This commit is contained in:
20
menu.cpp
20
menu.cpp
@@ -4415,15 +4415,17 @@ void HandleUI(void)
|
||||
if (flist_nDirEntries())
|
||||
{
|
||||
ScrollLongName(); // scrolls file name if longer than display line
|
||||
|
||||
//Write out paths infos for external integration
|
||||
FILE* filePtr = fopen("/tmp/CURRENTPATH","w");
|
||||
FILE* pathPtr = fopen("/tmp/FULLPATH","w");
|
||||
fprintf(filePtr, "%s", flist_SelectedItem()->altname);
|
||||
fprintf(pathPtr, "%s", selPath);
|
||||
fclose(filePtr);
|
||||
fclose(pathPtr);
|
||||
|
||||
|
||||
if (cfg.log_file_entry)
|
||||
{
|
||||
//Write out paths infos for external integration
|
||||
FILE* filePtr = fopen("/tmp/CURRENTPATH", "w");
|
||||
FILE* pathPtr = fopen("/tmp/FULLPATH", "w");
|
||||
fprintf(filePtr, "%s", flist_SelectedItem()->altname);
|
||||
fprintf(pathPtr, "%s", selPath);
|
||||
fclose(filePtr);
|
||||
fclose(pathPtr);
|
||||
}
|
||||
|
||||
if (c == KEY_HOME)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user