diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-11-20 00:42:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-20 00:42:51 +0100 |
commit | ecf80fbbbadaa782cbe81a6562916331c6762970 (patch) | |
tree | 7a949f6a95f36303a2f2d193aeabd6486e13f4a1 /core/bind/core_bind.cpp | |
parent | bc26a5bd3a51b11bab63112275e7045c63a0ffc4 (diff) | |
parent | 6e3f2f44af808e9f4255c2462e16beee844c0df7 (diff) | |
download | redot-engine-ecf80fbbbadaa782cbe81a6562916331c6762970.tar.gz |
Merge pull request #12988 from akien-mga/xdg-home-paths
Add support for XDG Base Directory spec
Diffstat (limited to 'core/bind/core_bind.cpp')
-rw-r--r-- | core/bind/core_bind.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index e1adb250e7..999befaf67 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -888,9 +888,9 @@ void _OS::dump_resources_to_file(const String &p_file) { OS::get_singleton()->dump_resources_to_file(p_file.utf8().get_data()); } -String _OS::get_data_dir() const { +String _OS::get_user_data_dir() const { - return OS::get_singleton()->get_data_dir(); + return OS::get_singleton()->get_user_data_dir(); }; Error _OS::native_video_play(String p_path, float p_volume, String p_audio_track, String p_subtitle_track) { @@ -1088,7 +1088,7 @@ void _OS::_bind_methods() { ClassDB::bind_method(D_METHOD("get_static_memory_peak_usage"), &_OS::get_static_memory_peak_usage); ClassDB::bind_method(D_METHOD("get_dynamic_memory_usage"), &_OS::get_dynamic_memory_usage); - ClassDB::bind_method(D_METHOD("get_data_dir"), &_OS::get_data_dir); + ClassDB::bind_method(D_METHOD("get_user_data_dir"), &_OS::get_user_data_dir); ClassDB::bind_method(D_METHOD("get_system_dir", "dir"), &_OS::get_system_dir); ClassDB::bind_method(D_METHOD("get_unique_id"), &_OS::get_unique_id); |