summaryrefslogtreecommitdiffstats
path: root/core/io/file_access.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@6c05ec3d6732cac44cf85c91db7d3fd1075bcb23Spartan3222024-11-151-1/+7
|\
| * Allow setting custom initialization vector for FileAccessEncrypted. Add ↵bruvzg2024-11-131-1/+7
| | | | | | | | export setting to set static seed for PCK encryption initialization vectors.
* | Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-2/+2
|\|
| * Set clang-format `RemoveSemicolon` rule to `true`Adam Scott2024-10-251-2/+2
| | | | | | | | - Set clang-format `Standard` rule to `c++20`
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Reduce code duplication in FileAccessBlueCube33102024-09-011-4/+4
|
* [FileAccess] Implement `resize` method.bruvzg2024-04-121-0/+1
|
* Implement `OS.execute_with_pipe` method to run process with redirected stdio.bruvzg2024-03-271-0/+1
| | | | Implement `pipe://*` path handling for creation of named pipes.
* Enforce template syntax `typename` over `class`Thaddeus Crews2024-03-071-2/+2
|
* Error handling for `FileAccess.get_file_as_*`Paul Joannon2023-10-111-2/+2
| | | | | - Assign last error in said `FileAccess.get_file_as_bytes` and `FileAccess.get_file_as_string` - Document error handling for said methods
* [FileAccess] Add methods to get/set "hidden" and "read-only" attributes on ↵bruvzg2023-08-081-4/+30
| | | | macOS/BSD and Windows.
* Support long path in file access on windowsSamuele Panzeri2023-05-051-1/+1
| | | | Changed windows file access file to check for path length and use the \\?\ long format when needed
* Expose brotli decompression to the scripting API.bruvzg2023-03-291-1/+2
|
* Restore FileAccess.close method.bruvzg2023-02-161-0/+2
|
* [GDExtension] Expose some low level functions and String operators.bruvzg2023-01-191-2/+2
|
* 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-1/+4
| | | | | | | 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.
* Make some File/Dir methods privatekobewi2022-09-271-17/+17
|
* Replace File/Directory with FileAccess/DirAccesskobewi2022-09-191-1/+31
|
* Add FileAccess::get_access_type()Pedro J. Estébanez2022-08-241-0/+1
|
* File: Re-add support to skip CR (`\r`) in `File::get_as_text`Rémi Verschelde2022-08-011-1/+1
| | | | | | | | | | | | 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.
* Remove or make private `FileAccess` `close()` methods.bruvzg2022-04-121-1/+0
|
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-29/+7
|
* Zero initialize all pointer class and struct membersRémi Verschelde2022-04-041-1/+1
| | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Fix crash when exporting projects with shared librariesHaoyu Qiu2022-03-231-0/+4
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-0/+198
File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.