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:
@@ -539,10 +539,6 @@
|
||||
RelativePath="..\..\..\source\blender\editors\space_outliner\outliner.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\source\blender\editors\space_outliner\outliner_header.c"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
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 */
|
||||
int BLI_is_dir(char *file) {
|
||||
#ifdef WIN32
|
||||
return 1; /* XXX - TODO */
|
||||
#else
|
||||
return S_ISDIR(BLI_exist(file));
|
||||
#endif
|
||||
}
|
||||
|
||||
LinkNode *BLI_read_file_as_lines(char *name)
|
||||
|
Reference in New Issue
Block a user