From 9b65c8c3989fff531ab6347190192c6eb3464db2 Mon Sep 17 00:00:00 2001 From: paulc Date: Fri, 25 Jul 2008 18:00:04 +0000 Subject: [PATCH] Allow overriding the user config dir name at compile time. git-svn-id: http://yate.null.ro/svn/yate/trunk@2102 acf43c95-373e-0410-b603-e72c3f656dc1 --- engine/Engine.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/Engine.cpp b/engine/Engine.cpp index 7c341da1..691c268e 100644 --- a/engine/Engine.cpp +++ b/engine/Engine.cpp @@ -36,7 +36,9 @@ #define YSERV_INS 2 #define YSERV_DEL 4 #define PATH_SEP "\\" +#ifndef CFG_DIR #define CFG_DIR "Yate" +#endif #ifndef SHGetSpecialFolderPath __declspec(dllimport) BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,INT,BOOL); @@ -51,7 +53,9 @@ __declspec(dllimport) BOOL WINAPI SHGetSpecialFolderPathA(HWND,LPSTR,INT,BOOL); #include typedef void* HMODULE; #define PATH_SEP "/" +#ifndef CFG_DIR #define CFG_DIR ".yate" +#endif #endif