summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorFranco Eusébio Garcia <francoegarcia@outlook.com>2016-02-05 16:24:58 -0200
committerFranco Eusébio Garcia <francoegarcia@outlook.com>2016-02-07 15:54:25 -0200
commit68e2cd8caa0335c01f24a0d5d78753bf5ae65cd6 (patch)
tree3d9227e2c8e6516510fc41dc24b2816ebfb9b491 /platform
parent0f11b322b3448b213059de6927a94ce5aab6915e (diff)
Added constant to retrieve Windows' Documents path
According to MSDN's documentation (https://msdn.microsoft.com/en-us/library/windows/desktop/bb762181(v=vs.85).aspx), CSIDL_PERSONAL represents the default path to Windows Document's folder: "Previous to Version 6.0. The file system directory used to physically store a user's common repository of documents. A typical path is C:\Documents and Settings\username\My Documents. This should be distinguished from the virtual My Documents folder in the namespace. To access that virtual folder, use SHGetFolderLocation, which returns the ITEMIDLIST for the virtual location, or refer to the technique described in Managing the File System."
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/os_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 8a291a298b..95a6a6ac58 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -2075,7 +2075,7 @@ String OS_Windows::get_system_dir(SystemDir p_dir) const {
id=CSIDL_MYPICTURES;
} break;
case SYSTEM_DIR_DOCUMENTS: {
- id=0x000C;
+ id=CSIDL_PERSONAL;
} break;
case SYSTEM_DIR_DOWNLOADS: {
id=0x000C ;