diff options
Diffstat (limited to 'platform/platform_win.cpp')
-rw-r--r-- | platform/platform_win.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/platform_win.cpp b/platform/platform_win.cpp index a8c3b8d5c9..ff59584210 100644 --- a/platform/platform_win.cpp +++ b/platform/platform_win.cpp @@ -4,7 +4,9 @@ #include <shlobj.h> -static bool GetUserWritableDir(string & outDir) +#define LOCALAPPDATA_DIR "MapsWithMe" + +bool GetUserWritableDir(string & outDir) { char pathBuf[MAX_PATH] = {0}; if (SUCCEEDED(::SHGetFolderPathA(NULL, CSIDL_LOCAL_APPDATA | CSIDL_FLAG_CREATE, NULL, SHGFP_TYPE_CURRENT, pathBuf))) @@ -19,7 +21,7 @@ static bool GetUserWritableDir(string & outDir) } /// @return full path including binary itself -static bool GetPathToBinary(string & outPath) +bool GetPathToBinary(string & outPath) { // get path to executable char pathBuf[MAX_PATH] = {0}; |