Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9688 → Rev 9689

/programs/cmm/eolite/Eolite.c
1,4 → 1,4
//Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2021
//Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2022
//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.21"
#define TITLE_EOLITE "Eolite File Manager 5.21"
#define TITLE_KFM "Kolibri File Manager 2.21";
#define ABOUT_TITLE "EOLITE 5.22"
#define TITLE_EOLITE "Eolite File Manager 5.22"
#define TITLE_KFM "Kolibri File Manager 2.22";
 
#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(100))
loop() switch(@WaitEventTimeout(150))
{
case evMouse:
if (Form.status_window&ROLLED_UP) break;
511,8 → 511,11
if (CheckActiveProcess(Form.ID)) && (GetMenuClick()) break;
break;
default:
if (!Form.status_window&ROLLED_UP) EventRefreshDisksAndFolders();
if (!Form.status_window&ROLLED_UP)
&& (ESBYTE[path+1]!='f') && (ESBYTE[path+1]!='c') {
EventRefreshDisksAndFolders();
}
}
 
if(cmd_free)
{
1277,13 → 1280,15
return;
}
} else {
if (GetRealFileCountInFolder("/")+dir_exists("/kolibrios") != SystemDiscs.dev_num) {
if (GetRealFileCountInFolder("/")+KolibriosMounted() != 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/eolite/include/left_panel.h
1,3 → 1,10
bool KolibriosMounted()
{
static bool kolibrios_mounted;
if (kolibrios_mounted) return true;
kolibrios_mounted = real_dir_exists("/kolibrios");
return kolibrios_mounted;
}
 
struct _SystemDiscs
{
23,7 → 30,7
list.add("/sys");
dev_num++;
 
if (dir_exists("/kolibrios")) {
if (KolibriosMounted()) {
//need to check that /sys != /kolibrios
list.add("/kolibrios");
dev_num++;
/programs/cmm/lib/fs.h
256,19 → 256,16
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 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 real_dir_exists(dword fpath)
{
BDVK fpath_atr;
if (GetFileInfo(fpath, #fpath_atr) != 0) return false;
return fpath_atr.isfolder;
}
*/
 
:bool file_exists(dword fpath)
{