Rev 8821 | Rev 8839 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8821 | Rev 8826 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | selected_image = icons16_selected.image; |
19 | selected_image = icons16_selected.image; |
20 | default_image = icons16_default.image; |
20 | default_image = icons16_default.image; |
21 | default_icon=2; |
21 | default_icon=2; |
22 | } |
22 | } |
Line 23... | Line -... | ||
23 | - | ||
24 | //KolibriNext |
- | |
25 | /* |
23 | |
26 | if (chrnum(file_path, '/')==2) { |
24 | if (chrnum(file_path, '/')==2) { |
27 | if (ESBYTE[file_path+1]=='/') ext[0] = ESBYTE[file_path+2]; |
25 | if (ESBYTE[file_path+1]=='/') ext[0] = ESBYTE[file_path+2]; |
28 | else ext[0] = ESBYTE[file_path+1]; |
26 | else ext[0] = ESBYTE[file_path+1]; |
29 | ext[1] = '\0'; |
27 | ext[1] = '\0'; |
Line 32... | Line 30... | ||
32 | icon_n = icons_ini.GetInt(#ext, 50); |
30 | icon_n = icons_ini.GetInt(#ext, 50); |
33 | } else { |
31 | } else { |
34 | icons_ini.section = "drives16"; |
32 | icons_ini.section = "drives16"; |
35 | icon_n = icons_ini.GetInt(#ext, 50); |
33 | icon_n = icons_ini.GetInt(#ext, 50); |
36 | } |
34 | } |
37 | } else |
- | |
38 | */ |
- | |
39 | if (extension) { |
35 | } else if (extension) { |
40 | strcpy(#ext, extension); |
36 | strcpy(#ext, extension); |
41 | strlwr(#ext); |
37 | strlwr(#ext); |
42 | icon_n = icons_ini.GetInt(#ext, default_icon); |
38 | icon_n = icons_ini.GetInt(#ext, default_icon); |
43 | } else if (file_path) { |
39 | } else if (file_path) { |
44 | ReadFile(0,4,#BYTE_HEAD_FILE,file_path); |
40 | ReadFile(0,4,#BYTE_HEAD_FILE,file_path); |