From 059d4f181cf2b0dfe735bbbcc35fa945ee466cc8 Mon Sep 17 00:00:00 2001 From: Andrea Weikert Date: Mon, 19 Oct 2009 19:26:28 +0000 Subject: [PATCH] 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. --- projectfiles_vc9/blender/editors/ED_editors.vcproj | 4 ---- source/blender/blenlib/intern/storage.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/projectfiles_vc9/blender/editors/ED_editors.vcproj b/projectfiles_vc9/blender/editors/ED_editors.vcproj index c49e817196e..4a8063bb5f0 100644 --- a/projectfiles_vc9/blender/editors/ED_editors.vcproj +++ b/projectfiles_vc9/blender/editors/ED_editors.vcproj @@ -539,10 +539,6 @@ RelativePath="..\..\..\source\blender\editors\space_outliner\outliner.c" > - - diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c index b48b6784c23..dbf1f5100a6 100644 --- a/source/blender/blenlib/intern/storage.c +++ b/source/blender/blenlib/intern/storage.c @@ -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)