file browser

* the code for BLI_is_dir can be shared on Windows, no need of extra implementation - error was usage of BLI_exists instead of BLI_exist! 
* left BLI_is_dir in since it's nicer to read and understand
* also removed deprecated outliner_header from MSVC projectfiles.
This commit is contained in:
Andrea Weikert 2009-10-19 19:26:28 +00:00
parent 0ce2950649
commit 059d4f181c
2 changed files with 0 additions and 8 deletions

@ -539,10 +539,6 @@
RelativePath="..\..\..\source\blender\editors\space_outliner\outliner.c" RelativePath="..\..\..\source\blender\editors\space_outliner\outliner.c"
> >
</File> </File>
<File
RelativePath="..\..\..\source\blender\editors\space_outliner\outliner_header.c"
>
</File>
<File <File
RelativePath="..\..\..\source\blender\editors\space_outliner\outliner_intern.h" RelativePath="..\..\..\source\blender\editors\space_outliner\outliner_intern.h"
> >

@ -470,11 +470,7 @@ int BLI_exist(char *name)
/* would be better in fileops.c except that it needs stat.h so add here */ /* would be better in fileops.c except that it needs stat.h so add here */
int BLI_is_dir(char *file) { int BLI_is_dir(char *file) {
#ifdef WIN32
return 1; /* XXX - TODO */
#else
return S_ISDIR(BLI_exist(file)); return S_ISDIR(BLI_exist(file));
#endif
} }
LinkNode *BLI_read_file_as_lines(char *name) LinkNode *BLI_read_file_as_lines(char *name)