diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-11-17 15:25:22 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-11-17 20:55:09 +0100 |
commit | 73049d115e190b8c356f0689a9079c3c73cc5765 (patch) | |
tree | 921a1935f6d841988071b930fbfea498bf872a3e /platform/windows | |
parent | ebbe2bd57235fcbd2edb82c05bb9d7d768b3e7ca (diff) |
Rename OS::get_data_dir to OS::get_user_data_dir
Will be needed to avoid confusion with system data path (XDG_DATA_HOME)
and editor data dir in upcoming refactoring.
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/os_windows.cpp | 4 | ||||
-rw-r--r-- | platform/windows/os_windows.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 0f62dbb9e8..8c290127a0 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1090,7 +1090,7 @@ void OS_Windows::initialize(const VideoMode &p_desired, int p_video_driver, int //RegisterTouchWindow(hWnd, 0); // Windows 7 - _ensure_data_dir(); + _ensure_user_data_dir(); DragAcceptFiles(hWnd, true); @@ -2167,7 +2167,7 @@ String OS_Windows::get_system_dir(SystemDir p_dir) const { ERR_FAIL_COND_V(res != S_OK, String()); return String(szPath); } -String OS_Windows::get_data_dir() const { +String OS_Windows::get_user_data_dir() const { String an = get_safe_application_name(); if (an != "") { diff --git a/platform/windows/os_windows.h b/platform/windows/os_windows.h index fbd60e5f0d..f3b8f0e5fd 100644 --- a/platform/windows/os_windows.h +++ b/platform/windows/os_windows.h @@ -253,7 +253,7 @@ public: virtual void enable_for_stealing_focus(ProcessID pid); virtual void move_window_to_foreground(); - virtual String get_data_dir() const; + virtual String get_user_data_dir() const; virtual String get_system_dir(SystemDir p_dir) const; virtual void release_rendering_thread(); |