summaryrefslogtreecommitdiffstats
path: root/core/io/file_access.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly initialize all of `FileAccess::create_func[ACCESS_MAX]`scgm02024-01-311-1/+1
|
* [FileAccess] Add methods to get/set "hidden" and "read-only" attributes on ↵bruvzg2023-08-081-4/+70
| | | | macOS/BSD and Windows.
* Improve error reporting when parsing CSV translation fileandybarcia2023-06-191-0/+5
| | | | | | | | | Fixes #46682. Also fix unit test suite to separate generic FileAccess CSV testing from using CSV as translation. And add more CSV translation tests. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Expose brotli decompression to the scripting API.bruvzg2023-03-291-0/+1
|
* Fix FileAccess last open error flag updatebitsawer2023-02-211-4/+3
|
* Restore FileAccess.close method.bruvzg2023-02-161-0/+2
|
* [GDExtension] Expose some low level functions and String operators.bruvzg2023-01-191-6/+6
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Use system fonts as fallback and improve system font handling.bruvzg2022-12-041-2/+5
| | | | | | | Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
* Use `constexpr` in the conditions with template parameters and `sizeof`s to ↵bruvzg2022-09-291-1/+1
| | | | suppress C4127 warnings.
* Replace File/Directory with FileAccess/DirAccesskobewi2022-09-191-2/+204
|
* Add FileAccess::get_access_type()Pedro J. Estébanez2022-08-241-0/+4
|
* File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde2022-08-011-2/+2
| | | | | | | | | | | | This was removed in #63481, and we confirmed that it's better like this, but we add back the possibility to strip CR as an option, to optionally restore the previous behavior. For performance this is done directly in `String::parse_utf8`. Also fixes Android `FileAccess::get_line()` as this one _should_ strip CR. Supersedes #63717.
* Allows parsing of invalid UTF-16 surrogates (can be encountered in Windows ↵bruvzg2022-07-071-4/+1
| | | | filenames) and some non-standard UTF-8 variants, makes Unicode parse errors more verbose.
* Narrow FileAccess scope to prevent deadlocks.bruvzg2022-04-121-1/+1
|
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-34/+24
|
* String: Add contains().Anilforextra2022-02-041-1/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-2/+2
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Tests: Improve coverage for `File::get_csv_line()`Rémi Verschelde2021-08-041-18/+19
| | | | | | | Adds a few more complex edge cases which are supported. Also adds some documentation, simplifies the code a bit and forbids using double quotes as a delimiter.
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-0/+676
File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.