Rev 7160 | Rev 7197 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7160 | Rev 7163 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | void DrawIconByExtension(dword file_path, extension, xx, yy, fairing_color) |
3 | void DrawIconByExtension(dword file_path, extension, xx, yy, fairing_color) |
4 | { |
4 | { |
5 | char BYTE_HEAD_FILE[4]; |
5 | char BYTE_HEAD_FILE[4]; |
6 | char ext[512]; |
6 | char ext[512]; |
7 | int i; |
7 | int i; |
8 | dword icon_n=0; |
8 | dword icon_n=2; // set default icon |
Line 9... | Line 9... | ||
9 | 9 | ||
10 | if (extension) |
10 | if (extension) |
11 | { |
11 | { |
12 | strcpy(#ext, extension); |
12 | strcpy(#ext, extension); |