summaryrefslogtreecommitdiffstats
path: root/drivers/windows/dir_access_windows.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #52963 from Pineapple/WIN32_LEAN_AND_MEAN_masterRémi Verschelde2021-10-051-0/+1
|\
| * Add missing WIN32_LEAN_AND_MEANBartłomiej T. Listwon2021-09-231-0/+1
| |
* | Merge pull request #43068 from cooperra/rename-fixRémi Verschelde2021-10-021-0/+5
|\ \ | |/ |/|
| * Fix file panel renaming unable to change the case of dirs on WindowsRobbie Cooper2020-10-251-0/+5
| | | | | | | | Tested on Windows 10.
* | Rename String::is_rel_path to String::is_relative_pathWilson E. Alvarez2021-08-291-5/+5
| |
* | Rename `String.is_abs_path()` to `String.is_absolute_path()`Hugo Locurcio2021-06-031-1/+1
| | | | | | | | This is more consistent with `NodePath.is_absolute()`.
* | Change behavior of String.rightTomasz Chabora2021-05-201-1/+1
| |
* | Make all file access 64-bit (uint64_t)Pedro J. Estébanez2021-05-171-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the types of a big number of variables. General rules: - Using `uint64_t` in general. We also considered `int64_t` but eventually settled on keeping it unsigned, which is also closer to what one would expect with `size_t`/`off_t`. - We only keep `int64_t` for `seek_end` (takes a negative offset from the end) and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means we only need to guard against passing negative values in `core_bind.cpp`. - Using `uint32_t` integers for concepts not needing such a huge range, like pages, blocks, etc. In addition: - Improve usage of integer types in some related places; namely, `DirAccess`, core binds. Note: - On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for big files on 32-bit Windows builds made with that toolchain. We might add a workaround. Fixes #44363. Fixes godotengine/godot-proposals#400. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* | Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* | Initialize class/struct variables with default values in core/ and drivers/Rafał Mikrut2020-11-231-2/+0
| |
* | Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
|/ | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* [Complex Test Layouts] Change `String` to use UTF-32 encoding on all platforms.bruvzg2020-09-031-68/+64
|
* Fix Directory Open CheckNathan Franke2020-07-061-1/+5
|
* fix(Directory): remove erasing printNathan Franke2020-05-281-4/+0
| | | | Fixes #39106
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-25/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Replace NULL with nullptrlupoDharkael2020-04-021-5/+5
|
* Fix res:// trimmed to s:// on WindowsPedro J. Estébanez2020-04-011-1/+7
|
* Improve UX of drive lettersPedro J. Estébanez2020-03-031-2/+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.
* Capitalise drive lettersTwarit2019-03-101-1/+1
| | | | Matches how other application like to display the drive letters
* Fix style issues from recent commitsRémi Verschelde2019-03-031-1/+0
|
* Remove some windows printsJuan Linietsky2019-03-021-2/+2
|
* Fix code style issuesRémi Verschelde2019-01-261-17/+17
|
* Fix compilation on UWPHein-Pieter van Braam2019-01-261-3/+3
| | | | | | It appears that MSVC and Mingw disagree about what conversions are legal here. We just use the 'wide' version of the call and use our native CharType instead of TCHAR.
* Add function to obtain filesystem type from DirAccess.Juan Linietsky2019-01-211-0/+29
| | | | 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!
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-2/+2
| | | | | | 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.
* Fix Windows file case changingHein-Pieter van Braam2018-02-241-5/+22
| | | | | | | | | | Windows APIs don't really provide a way to change a filename case. This implements a little juggling to make this work. We first create a guaranteed unique temporary file, we then replace the original file with the temporary file and we finally rename it to the desired filename case. (cherry picked from commit d69d58deeaa523c6c38958b3956423ae8f814909)
* 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!
* Fixed issue #12019, which prevented the creation of new folders on Windows ↵Falk Moser2017-10-131-1/+1
| | | | platform
* Extract logging logicRuslan Mustakov2017-09-251-1/+1
| | | | | | | | | | | | | | | | | | | Previously logging logic was scattered over OS class implementations with plenty of duplication. Major changes in this commit: - Extracted logging logic into a separate Logger hierarchy. It allows easy configuration of logging mechanism depending on compile-time or run-time configuration. - Implemented RotatedFileLogger which is usually used with StdLogger, providing persistency of logs. It is often important to be able to obtain logs of the game even in production to be able to understand what happened prior to some problem. On mobile there previously was no way to obtain the logs aside from having the device connected to your machine. - flush() is not performed in release mode for every logged line. It is only performed for errors.
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* Fix typos in source code using codespellRémi Verschelde2017-03-241-1/+1
| | | | From https://github.com/lucasdemarchi/codespell
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-88/+72
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixed dir access return value, changed it to Error like all other funcsJuan Linietsky2017-01-141-2/+2
|
* 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!
* Rename WINRT_ENABLED to UWP_ENABLEDGeorge Marques2016-11-031-1/+1
|
* Fix drivers coding for WinRTGeorge Marques2016-09-031-25/+0
| | | | | | | - Add a proper function to retrieve IP addresses. - Solve issues with Windows FileAccess and DirAccess to use the same code for WinRT. - Add patches to the GLES2 rasterizer to workaround ANGLE issues.
* Fix some bugs in diraccess, closes #5288Juan Linietsky2016-06-301-10/+10
|
* Fix make_dir for long paths on WindowsGeorge Marques2016-06-181-1/+1
|
* -made get_space_left() return values more homogenous, also for script, ↵Juan Linietsky2016-06-181-1/+2
| | | | converted to mb, closes #4617
* Fixed make_dir and make_dir_recursive erros, closes #1680 closes #1872Juan Linietsky2016-06-181-8/+7
|
* Somewhat fixed Directory::get_space_left() return values.J08nY2016-06-061-6/+10
|
* 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
|
* -Corrected DirAccessWindows functions, fixes #1872, properly fixes #791.Juan Linietsky2015-05-091-17/+19
|
* Merge remote-tracking branch 'origin/master'Juan Linietsky2015-05-041-160/+65
|\ | | | | | | | | Conflicts: drivers/windows/dir_access_windows.cpp