Improved the Directories configuration dialog.

This commit is contained in:
rheiny 2007-02-11 15:35:46 +00:00
parent 5595d2c17b
commit 12f87fac8c
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#include "common.h"
bool directoryExists(const char* dirname)
{
DWORD res = GetFileAttributes(dirname);
return res != 0xFFFFFFFF && res & FILE_ATTRIBUTE_DIRECTORY;
}