Subversion Repositories Kolibri OS

Rev

Rev 7313 | Rev 7361 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7313 Rev 7314
Line 130... Line 130...
130
#include "include\properties.h"
130
#include "include\properties.h"
131
#include "include\breadcrumbs.h"
131
#include "include\breadcrumbs.h"
Line 132... Line 132...
132
 
132
 
133
void main() 
133
void main() 
-
 
134
{
-
 
135
	byte update = 0;
-
 
136
	dword files_count = 0;
-
 
137
	dword countPathFile = 0;
134
{
138
	dword countPathFile2 = 0;
135
	dword files_y = 0;
139
	dword files_y = 0;
136
	dword countDisk = 0;
140
	dword countDisk = 0;
137
	dword id;
141
	dword id;
138
	dword devbuf;
142
	dword devbuf;
Line 533... Line 537...
533
					action_buf=0;
537
					action_buf=0;
534
				}
538
				}
535
			break;
539
			break;
536
			default:
540
			default:
Line 537... Line 541...
537
				
541
				
538
				ReadDir(19, devbuf, "/");
542
				ReadDir(19, devbuf, "/"); // get disk
539
				IF(countDisk != EBX)
543
				IF(countDisk != EBX) // if different then
540
				{
544
				{
541
					countDisk = EBX;
545
					countDisk = EBX;
542
					FnProcess(5);
546
					FnProcess(5);
-
 
547
				}
-
 
548
				else // get current files
-
 
549
				{
-
 
550
					if(two_panels.checked)
-
 
551
					{
-
 
552
						// this add code update list files
-
 
553
						update = 0;
-
 
554
						//strcpy(#inactive_path,#path);
-
 
555
						ReadDir(19, devbuf, #inactive_path);
-
 
556
						IF(countPathFile != EBX) // if different then
-
 
557
						{
-
 
558
							countPathFile = EBX;
-
 
559
							update = 0xFF;
-
 
560
						}
-
 
561
						
-
 
562
						//strcpy(#active_path,#path);
-
 
563
						ReadDir(19, devbuf, #active_path);
-
 
564
						IF(countPathFile2 != EBX) // if different then
-
 
565
						{
-
 
566
							countPathFile2 = EBX;
-
 
567
							update = 0xFF;
-
 
568
						}
-
 
569
						IF(update) DrawFilePanels();
-
 
570
					}
-
 
571
					ELSE
-
 
572
					{
-
 
573
						ReadDir(19, devbuf, #path);
-
 
574
						IF(countPathFile != EBX) // if different then
-
 
575
						{
-
 
576
							countPathFile = EBX;
-
 
577
							Open_Dir(#path,WITH_REDRAW);
-
 
578
						}
-
 
579
					}
543
				}
580
				}
Line 544... Line 581...
544
		}
581
		}