Subversion Repositories Kolibri OS

Rev

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

Rev 4846 Rev 5399
Line 16... Line 16...
16
	if (onload==1)
16
	if (onload==1)
17
	{
17
	{
18
		free(buff);
18
		free(buff);
19
		if (!GetFile(#buff, #fsize, abspath("Eolite.ini"))) notify("Eolite.ini not found. Defaults will be used.");
19
		if (!GetFile(#buff, #fsize, abspath("Eolite.ini"))) notify("Eolite.ini not found. Defaults will be used.");
20
	}
20
	}
21
	for (tj=0; tj
-
 
22
	{   
-
 
23
		bukva = ESBYTE[buff+tj];
-
 
24
		switch (bukva)
-
 
25
		{
-
 
26
			case ';': InfType=COMMENT; break;				
-
 
27
			case '[': InfType=SECTION; section=NULL; break;
-
 
28
			case ']': InfType=PARAM; break;
-
 
29
			case '=': InfType=OPTION; break;
-
 
30
			case 0x0a:
-
 
31
			case 0x0d:
-
 
32
				InfType=PARAM;
-
 
33
				if (!strcmp(#parametr,"SelectionColor")) edit2.shift_color=col_selec=StrToCol(#option);
-
 
34
				if (!strcmp(#parametr,"LineHeight")) files.line_h = atoi(#option);
-
 
35
				if (!strcmp(#parametr,"ShowDeviceName")) show_dev_name=atoi(#option);
-
 
36
				if (!strcmp(#parametr,"RealFileNamesCase")) real_files_names_case=atoi(#option);
-
 
37
				if (!strcmp(#parametr,"DrwRamDiskSpace")) drw_ram_disk_space=atoi(#option);
-
 
Line 38... Line 21...
38
				
21
	
39
				if (parametr) && (!strcmpi(#file_name+strrchr(#file_name,'.'),#parametr)) && (!onload)
-
 
40
				{
-
 
41
					errornum = RunProgram(#option,#file_path);
22
	ini_get_color stdcall (abspath("Eolite.ini"), "Config", "SelectionColor", 0x94AECE);
42
					if (errornum<0)
-
 
43
					{
23
	edit2.shift_color = EAX;
44
						if (errornum==-5) ShowOpenWithDialog(); else Write_Error(errornum);
-
 
45
					}
-
 
46
					return;
-
 
47
				}
24
	ini_get_int stdcall (abspath("Eolite.ini"), "Config", "LineHeight", 18);
48
				parametr=option=NULL;
-
 
49
				break;
-
 
50
			default:
25
	files.line_h = EAX;
51
				IF (InfType==SECTION) chrcat(#section, bukva);
26
	ini_get_int stdcall (abspath("Eolite.ini"), "Config", "ShowDeviceName", 1);
52
				IF (InfType==PARAM) chrcat(#parametr, bukva);
27
	show_dev_name = EAX;
53
				IF (InfType==OPTION) chrcat(#option, bukva);
-
 
54
		}
-
 
55
	}
28
	ini_get_int stdcall (abspath("Eolite.ini"), "Config", "RealFileNamesCase", 0);
56
	if (file_path) && (!onload)
-
 
57
	{
-
 
58
		errornum = RunProgram(#file_path,NULL); 
29
	real_files_names_case = EAX;
59
		if (errornum==-31) menu_action(201); else if (errornum<0) Write_Error(errornum);
30
	ini_get_int stdcall (abspath("Eolite.ini"), "Config", "DrwRamDiskSpace", 0);
60
		return;
-
 
61
	}
31
	drw_ram_disk_space = EAX;
Line 62... Line 32...
62
}
32
}
63
 
33