summaryrefslogtreecommitdiffstats
path: root/core/io
Commit message (Collapse)AuthorAgeFilesLines
* Modify JSON.stringify so that it doesn't create unnecessary empty lines from ↵Jakub Mateusz Marcowski2023-03-071-1/+4
| | | | empty arrays
* Merge pull request #73793 from myaaaaaaaaa/init-raceRémi Verschelde2023-03-061-4/+4
|\ | | | | | | Fix some race conditions that happen during initialization
| * Fix data races in startup/teardownmyaaaaaaaaa2023-03-061-4/+4
| |
* | Merge pull request #74166 from RandomShaper/fix_res_loader_read_freedRémi Verschelde2023-03-031-2/+10
|\ \ | | | | | | | | | Fix crash in resource load
| * | Fix crash in resource loadPedro J. Estébanez2023-03-011-2/+10
| | |
* | | Merge pull request #73862 from RandomShaper/fix_subthreaded_res_loadRémi Verschelde2023-03-021-6/+0
|\ \ \ | | | | | | | | | | | | Lift restriction that resource load thread requester has to be the initiator
| * | | Lift restriction that resource load thread requester has to be the initiatorPedro J. Estébanez2023-02-241-6/+0
| |/ /
* / / Fix deadlock in cyclic resource loadPedro J. Estébanez2023-02-261-9/+18
|/ /
* | Merge pull request #73647 from RandomShaper/fix_threaded_loadRémi Verschelde2023-02-232-26/+34
|\ \ | | | | | | | | | Fix threading issues in resource loading
| * | Fix cases of resource load tasks not being awaitablePedro J. Estébanez2023-02-201-0/+11
| | |
| * | Fix race condition in resource loader when a load task is reusedPedro J. Estébanez2023-02-202-27/+24
| | |
* | | Fix FileAccess last open error flag updatebitsawer2023-02-211-4/+3
| |/ |/|
* | Make `ResourceCache::get_cached_resources` thread-safevoidedWarranties2023-02-201-1/+18
|/
* Restore FileAccess.close method.bruvzg2023-02-1613-0/+41
|
* Merge pull request #72492 from maiself/fix-binary-res-typed-arrayRémi Verschelde2023-02-011-0/+12
|\ | | | | | | Fix loading of binary resources with typed arrays
| * Fix loading of binary resources with typed arraysMai Lavelle2023-02-011-0/+12
| |
* | Use enum instead of int in virtual methods return typeRaul Santos2023-01-314-7/+7
|/
* Refactor high quality texture importJuan Linietsky2023-01-302-30/+34
| | | | | | | | | | | | | | | * Only two texture import modes for low/high quality now: * S3TC/BPTC * ETC2/ASTC * Makes sense given this is the general preferred and most compatible combination in most platforms. * Removed lossy_quality from VRAM texture compression options. It was unused everywhere. * Added a new "high_quality" option to texture import. When enabled, it uses BPTC/ASTC (BC7/ASTC4x4) instead of S3TC/ETC2 (DXT1-5/ETC2,ETCA). * Changed MacOS export settings so required texture formats depend on the architecture selected. This solves the following problems: * Makes it simpler to import textures as high quality, without having to worry about the specific format used. * As the editor can now run on platforms such as web, Mac OS with Apple Silicion and Android, it should no longer be assumed that S3TC/BPTC is available by default for it.
* Merge pull request #71995 from Faless/net/4.x_tls_verifyRémi Verschelde2023-01-3010-51/+33
|\ | | | | | | [NET] Refactor TLS configuration.
| * [Net] Remove StreamPeerTLS.blocking_handshake option.Fabio Alessandrelli2023-01-283-23/+1
| | | | | | | | | | | | | | | | | | Which was unused internally, and can be replaced by: ``` while tls.get_status() == tls.STATUS_HANDSHAKING: tls.poll() ```
| * [NET] Refactor TLS configuration.Fabio Alessandrelli2023-01-2810-28/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | Use a TLSOptions configuration object which is created via static functions. - "TLSOptions.client": uses the standard CA and common name verification. - "TLSOptions.client_unsafe": uses optional CA verification (i.e. if specified) - "TLSOptions.server": is the standard server configuration (chain + key) This will allow us to expand the TLS configuration options to include e.g. mutual authentication without bloating the classes that uses StreamPeerTLS and PacketPeerDTLS as underlying peers.
* | Fix `Resource::duplicate()` missing packed arraysAdam Scott2023-01-281-8/+28
|/
* Add PROPERTY_USAGE_NEVER_DUPLICATE flag and use for scriptAaron Franke2023-01-241-1/+1
| | | | Co-authored-by: Yakov Borevich <j.borevich@gmail.com>
* PropertyUsage: Rename "DO_NOT_SHARE_ON_DUPLICATE" to "ALWAYS_DUPLICATE"Aaron Franke2023-01-241-1/+1
|
* Convert en_GB spelling to en_US with codespellRémi Verschelde2023-01-231-1/+1
|
* Merge pull request #71687 from reduz/support-script-class-name-in-efsRémi Verschelde2023-01-214-1/+119
|\ | | | | | | Support script global resource name in EditorFileSystem
| * Support script global resource name in EditorFileSystemJuan Linietsky2023-01-214-1/+119
| | | | | | | | | | | | | | | | | | | | * Works for binary and text files. * Makes EditorQuickOpen work with custom resources again. * Information is cached and easily accessible. Properly fixes #66179. Supersedes #66215 and supersedes #62417 **WARNING**: This required breaking backwards binary compatibility (.res and .scn files). Files saved after this PR is merged will no longer open in any earlier versions of Godot.
* | Merge pull request #71390 from reduz/fix-json-as-resourceRémi Verschelde2023-01-212-11/+31
|\ \ | | | | | | | | | Fixes to JSON as resource
| * | Fixes to JSON as resourceJuan Linietsky2023-01-142-11/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * It was not a resource, hence it was not working to load it as such. * Changed so, when opened in editor, a parse error will not fail load and the text will be kept. * This should allow proper editing from within the code editor, including syntax checking and saving files as-is in text. Partially addresses #66820. The code editor still needs to be changed for this to work.
* | | Merge pull request #44596 from KoBeWi/🧹🧹🧹Rémi Verschelde2023-01-1910-36/+0
|\ \ \ | |_|/ |/| | | | | Cleanup unused engine code v2
| * | Cleanup unused engine code v2kobewi2023-01-1910-36/+0
| |/
* / [GDExtension] Expose some low level functions and String operators.bruvzg2023-01-194-15/+15
|/
* Merge pull request #68450 from KoBeWi/bracket_escapistRémi Verschelde2023-01-121-2/+2
|\ | | | | Allow to escape closing brackets in CFG tags
| * Allow to escape closing brackets in CFG tagskobewi2022-11-091-2/+2
| |
* | Merge pull request #70726 from heppocogne/Fix-open_compressed-get_pathRémi Verschelde2023-01-102-0/+19
|\ \ | | | | | | | | | Fix `get_path()` is not working when files are opend with `open_compressed`
| * | Fix `get_path()` is not working when files are opend with `open_compressed`heppocogne2022-12-302-0/+19
| | | | | | | | | | | | And also fixed `get_absolute_path()` in the same way
* | | Ability to change a resource UID from APIJuan Linietsky2023-01-096-2/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Works for text, binary and imported resources * Allows better clean up of duplicate files. TODO (future PRs): * Use this API for assigning new UIDs to copied files. * Use this API for UID conflict on FS scanning (if more than one file has the same UID, the newer one(s) should get assigned a different UID).
* | | Merge pull request #68429 from KoBeWi/PropertySettingsRémi Verschelde2023-01-061-4/+2
|\ \ \ | | | | | | | | Add PropertyInfo overload for GLOBAL_DEF
| * | | Add PropertyInfo overload for GLOBAL_DEFkobewi2022-12-111-4/+2
| | | |
* | | | One Copyright Update to rule them allRémi Verschelde2023-01-0584-2436/+2436
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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".
* | | | Merge pull request #67853 from Zylann/fix_lods_with_doublesClay John2023-01-022-0/+23
|\ \ \ \ | |_|/ / |/| | | Fix usages of mesh simplification functions in float=64 builds
| * | | Fix usages of mesh simplification functions in float=64 buildsMarc Gilleron2022-11-122-0/+23
| | |/ | |/|
* | | Fix crashed when compressing empty image data.stmSi2022-12-211-0/+2
| | |
* | | Merge pull request #65376 from reduz/astc-supportRémi Verschelde2022-12-202-8/+65
|\ \ \ | | | | | | | | | | | | Implement basic ASTC support
| * | | Implement basic ASTC supportJuan Linietsky2022-12-202-8/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements basic ASTC support: * Only 4x4 and 8x8 block sizes. * Other block sizes are too complex to handle for Godot image compression handling. May be implemented sometime in the future. The need for ASTC is mostly for the following use cases: * Implement a high quality compression option for textures on mobile and M1 Apple hardware. * For this, the 4x4 is sufficient, since it uses the same size as BPTC. ASTC supports a lot of block sizes, but the benefit of supporting most of them is slim, while the implementation complexity in Godot is very high. Supporting only 4x4 (and 8x8) solves the real problem, which is lack of a BPTC alternative on hardware where it's missing. Note: This does not yet support encoding on import, an ASTC encoder will need to be added.
* | | | Merge pull request #69718 from groud/finally_rename_gdnative_to_gdextensionRémi Verschelde2022-12-122-6/+6
|\ \ \ \ | |_|_|/ |/| | | | | | | Rename all gdnative occurences to gdextension
| * | | Rename all gdnative occurences to gdextensionGilles Roudière2022-12-122-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Non-exhaustive list of case-sensitive renames: GDExtension -> GDNative GDNATIVE -> GDEXTENSION gdextension -> gdnative ExtensionExtension ->Extension (for where there was GDNativeExtension) EXTENSION_EXTENSION ->EXTENSION (for where there was GDNATIVE_EXTENSION) gdnlib -> gdextension gdn_interface -> gde_interface gdni -> gde_interface
* | | | Fix `ResourceLoader::thread_load_tasks` crashAdam Scott2022-12-072-0/+31
|/ / /
* | | Use system fonts as fallback and improve system font handling.bruvzg2022-12-043-4/+10
| | | | | | | | | | | | | | | | | | | | | 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.
* | | ETCPAK expects BGRA data for ETCBastiaan Olij2022-12-022-0/+14
| | |