Work on directory handling in save/load,
Mingw support for the config utility, with a larger font I made some time ago (I hoped the e' would work for Be'zier curves, but no) git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@144 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
4
files.c
4
files.c
@@ -168,6 +168,10 @@ void Ajouter_element_a_la_liste(struct dirent* Enreg)
|
||||
Element_temporaire->Type = (Enreg->d_type == DT_DIR);
|
||||
#elif __WATCOMC__
|
||||
Element_temporaire->Type = (Enreg->d_attr & _A_SUBDIR);
|
||||
#else
|
||||
struct stat Infos_enreg;
|
||||
stat(Enreg->d_name,&Infos_enreg);
|
||||
Element_temporaire->Type = S_ISDIR(Infos_enreg.st_mode);
|
||||
#endif
|
||||
|
||||
Element_temporaire->Suivant =Liste_du_fileselect;
|
||||
|
||||
Reference in New Issue
Block a user