summaryrefslogtreecommitdiffstats
path: root/drivers/unix/dir_access_unix.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace NULL with nullptrlupoDharkael2020-04-021-7/+7
|
* Improve UX of drive lettersPedro J. Estébanez2020-03-031-1/+6
| | | | | | | | | | Namely, move the drive dropdown to just the left of the path text box and don't include the former in the latter. This improves the UX on Windows. In the UNIX case, since its concept of drives is (ab)used to provide shortcuts to useful paths, its dropdown is kept at the original location.
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Optimize DirAccessUnix::get_next() for some file systemsHadrien2019-07-291-18/+13
| | | | | | | | | On some file systems, like ext4 on Linux, readdir() gives enough information to determine the entry type in order to avoid doing a stat() system call. Use this information and call stat() only if necessary: for file systems that do not support this feature and for links.
* Revert "Optimize DirAccessUnix::get_next() for some file systems"Geequlim2019-07-211-14/+10
|
* Optimize DirAccessUnix::get_next() for some file systemsHadrien2019-07-171-10/+14
| | | | | | | | On some file systems, like ext4 on Linux, readdir() gives enough information to determine the entry type in order to avoid doing a stat() system call. Use this information and call stat() only if necessary.
* Merge pull request #29815 from NilsIrl/plus_file_1Rémi Verschelde2019-07-011-1/+1
|\ | | | | Replace ` + "/" + ` with `String::file_add()`
| * Replace ` + "/" + ` with `String::file_add()`Nils ANDRÉ-CHANG2019-06-231-1/+1
| |
* | Some code changed with Clang-Tidyqarmin2019-06-261-4/+1
|/
* Add function to obtain filesystem type from DirAccess.Juan Linietsky2019-01-211-0/+4
| | | | Change EditorFileSystem to not use directory modification times on FAT32, fixes #20946
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Attempt to avoid breaking people's workflows on the change from ↵Juan Linietsky2018-11-271-1/+1
| | | | 8ba0d513fa0068a241a25fbb6db09315fa3309cc
* Added missing path verification on Unix, closes #20762Juan Linietsky2018-11-221-0/+11
|
* Safer getcwd in DirAccessFabio Alessandrelli2018-10-071-3/+3
| | | | Fix [-Wunused-result]
* Fix warnings in Android platformRémi Verschelde2018-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | Fixes the following Clang 7 warnings: ``` platform/android/os_android.h:240:16: warning: 'OS_Android::native_video_play' hides overloaded virtual function [-Woverloaded-virtual] platform/android/os_android.h:241:15: warning: 'OS_Android::native_video_is_playing' hides overloaded virtual function [-Woverloaded-virtual] platform/android/audio_driver_opensl.cpp:104:3: warning: suggest braces around initialization of subobject [-Wmissing-braces] platform/android/audio_driver_opensl.cpp:129:10: warning: unused variable 'numOutputs' [-Wunused-variable] platform/android/audio_driver_opensl.cpp:130:11: warning: unused variable 'deviceID' [-Wunused-variable] platform/android/java_glue.cpp:795:10: warning: unused variable 'clsio' [-Wunused-variable] platform/android/java_glue.cpp:890:12: warning: unused variable 'gob' [-Wunused-variable] platform/android/java_glue.cpp:592:13: warning: unused variable 'resized' [-Wunused-variable] platform/android/java_glue.cpp:593:13: warning: unused variable 'resized_reload' [-Wunused-variable] modules/mobile_vr/mobile_vr_interface.cpp:401:8: warning: unused variable 'aspect_ratio' [-Wunused-variable] drivers/unix/dir_access_unix.cpp:394:2: warning: THIS IS BROKEN [-W#warnings] ```
* Merge pull request #21982 from luzpaz/misc-typosRémi Verschelde2018-09-131-1/+1
|\ | | | | Misc. typos
| * Misc. typosluz.paz2018-09-121-1/+1
| | | | | | Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
* | Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-6/+7
|/ | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Revert "added get_creation_time function for gdscript"Juan Linietsky2018-08-101-20/+0
|
* added get_creation_time function for gdscriptDaniele Giuliani2018-05-161-0/+20
|
* Fix get_drive (bookmarks) in linux not workingPoommetee Ketson2018-02-211-1/+1
|
* [X11] Improving error detection in move_to_trashIskustvo2018-02-181-0/+1
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Only do 'drive' discovery on X11Hein-Pieter van Braam2017-09-141-4/+5
| | | | | | | | | | | | | As it turns out older versions of the Android NDK have mntent.h but not a complete implementation. If it did work it would most likely give the wrong results on Android anyway. This commit enables the UNIX drive discovery only for X11 We also missed '/run/media' (default for gnome desktops) in the list of places to look for 'drives' on Linux. Add that to the list also. This fixes #11270
* Merge pull request #11160 from marcelofg55/drive_funcs_x11Rémi Verschelde2017-09-131-2/+91
|\ | | | | Implemented DirAccess get_drive and get_drive_count for Linux
| * Implemented DirAccess get_drive and get_drive_count for LinuxMarcelo Fernandez2017-09-121-2/+91
| |
* | DirAccess constructor sets current_dir to an absolute pathsupagu2017-09-101-14/+6
|/
* Further symlink fixessupagu2017-09-061-16/+26
|
* Another take at fixing symlinksFabian Mathews2017-09-031-21/+23
|
* Dead code tells no talesRémi Verschelde2017-08-271-12/+0
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Revert "Reworked change_dir to support symlinks"Juan Linietsky2017-08-211-23/+22
|
* Merge pull request #8144 from supagu/symlinkRémi Verschelde2017-08-171-22/+23
|\ | | | | Reworked change_dir to support symlinks
| * Reworked change_dir to support symlinksFabian Mathews2017-04-061-22/+23
| |
* | Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|/
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-84/+60
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Style: Fix whole-line commented codeRémi Verschelde2017-01-141-1/+1
| | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* Fixed dir access return value, changed it to Error like all other funcsJuan Linietsky2017-01-141-3/+3
|
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
| | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* Removed no longer needed checkJuan Linietsky2016-07-021-2/+2
|
* Fix some bugs in diraccess, closes #5288Juan Linietsky2016-06-301-14/+17
|
* -made get_space_left() return values more homogenous, also for script, ↵Juan Linietsky2016-06-181-1/+1
| | | | converted to mb, closes #4617
* Fixed make_dir and make_dir_recursive erros, closes #1680 closes #1872Juan Linietsky2016-06-181-9/+16
|
* Added relative paths for DirAccess::remove()Zher Huei Lee2016-03-011-2/+5
| | | | Follows similar behaviour to DirAccess::rename()
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* -fix local and global usage for DirAccess, fixes #791Juan Linietsky2015-04-181-4/+11
| | | | please test anyway..
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* New option to show/hide hidden filesrollenrolm2015-03-211-0/+6
|
* Add DirAccess:dir_exist apimarynate2014-05-251-0/+20
|