Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9689 → Rev 9688

/programs/cmm/eolite/include/left_panel.h
1,10 → 1,3
bool KolibriosMounted()
{
static bool kolibrios_mounted;
if (kolibrios_mounted) return true;
kolibrios_mounted = real_dir_exists("/kolibrios");
return kolibrios_mounted;
}
 
struct _SystemDiscs
{
30,7 → 23,7
list.add("/sys");
dev_num++;
 
if (KolibriosMounted()) {
if (dir_exists("/kolibrios")) {
//need to check that /sys != /kolibrios
list.add("/kolibrios");
dev_num++;
/programs/cmm/eolite/Eolite.c
1,4 → 1,4
//Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2022
//Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2021
//GNU GPL license.
 
/*
11,9 → 11,9
http://board.kolibrios.org/viewtopic.php?f=23&t=4521&p=77334#p77334
*/
 
#define ABOUT_TITLE "EOLITE 5.22"
#define TITLE_EOLITE "Eolite File Manager 5.22"
#define TITLE_KFM "Kolibri File Manager 2.22";
#define ABOUT_TITLE "EOLITE 5.21"
#define TITLE_EOLITE "Eolite File Manager 5.21"
#define TITLE_KFM "Kolibri File Manager 2.21";
 
#define MEMSIZE 1024 * 250
#include "../lib/clipboard.h"
197,7 → 197,7
OpenDir(ONLY_OPEN);
llist_copy(#files_inactive, #files);
SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER);
loop() switch(@WaitEventTimeout(150))
loop() switch(@WaitEventTimeout(100))
{
case evMouse:
if (Form.status_window&ROLLED_UP) break;
511,11 → 511,8
if (CheckActiveProcess(Form.ID)) && (GetMenuClick()) break;
break;
default:
if (!Form.status_window&ROLLED_UP)
&& (ESBYTE[path+1]!='f') && (ESBYTE[path+1]!='c') {
EventRefreshDisksAndFolders();
if (!Form.status_window&ROLLED_UP) EventRefreshDisksAndFolders();
}
}
 
if(cmd_free)
{
1280,15 → 1277,13
return;
}
} else {
if (GetRealFileCountInFolder("/")+KolibriosMounted() != SystemDiscs.dev_num) {
if (GetRealFileCountInFolder("/")+dir_exists("/kolibrios") != SystemDiscs.dev_num) {
SystemDiscs.Get();
SystemDiscs.Draw();
}
}
if(GetRealFileCountInFolder(path) != files.count) {
OpenDir(WITH_REDRAW);
if(GetRealFileCountInFolder(path) != files.count) OpenDir(WITH_REDRAW);
}
}
 
void EventManualFolderRefresh()
{
/programs/cmm/lib/fs.h
256,16 → 256,19
else return bdvk.sizelo;
}
 
/* This implementation of dir_exists() is faster than
previous but here virtual folders like
'/' and '/tmp' are not recognised as FOLDERS
by GetFileInfo() => BDVK.isfolder attribute :( */
bool real_dir_exists(dword fpath)
/*
// This implementation of dir_exists() is faster than
// previous but here virtual folders like
// '/' and '/tmp' are not recognised as FOLDERS
// by GetFileInfo() => BDVK.isfolder attribute :(
 
:bool dir_exists(dword fpath)
{
BDVK fpath_atr;
if (GetFileInfo(fpath, #fpath_atr) != 0) return false;
return fpath_atr.isfolder;
}
*/
 
:bool file_exists(dword fpath)
{