summaryrefslogtreecommitdiff
path: root/core/io
AgeCommit message (Collapse)Author
2022-05-03Merge pull request #60627 from aaronfranke/rename-elementsRémi Verschelde
Rename Transform2D and Basis `elements` to `columns` and `rows` respectively
2022-05-03Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio
These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
2022-05-02Merge pull request #59895 from akien-mga/clang-tidyRémi Verschelde
2022-05-02Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde
Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
2022-05-02Fix resource dependence renaming.bruvzg
2022-04-29Rename Basis "elements" to "rows"Aaron Franke
2022-04-29Rename Transform2D "elements" to "columns"Aaron Franke
2022-04-27Merge pull request #56093 from bruvzg/pck_section_loadRémi Verschelde
Improve embedded PCK loading and exporting.
2022-04-27Merge pull request #59582 from Faless/net/4.x_tcp_explicit_pollRémi Verschelde
2022-04-27Merge pull request #59979 from bruvzg/cpp_check2Rémi Verschelde
2022-04-22Close FileAccess before accessing it with DirAccessHaoyu Qiu
2022-04-20Improve embedded PCK loading and exporting.bruvzg
Windows export process: Limit size of executable with embedded PCK to 4 GB. Use "rcedit" before embedding PCK. Capture and process "rcedit" errors. Windows, Linux: Add support for PCK loading from executable "pck" section.
2022-04-20Fix more issues found by cppcheck.bruvzg
2022-04-19Merge pull request #50175 from kleonc/image-blit-blend-fix-rectsHugo Locurcio
`Image.blit_rect/blend_rect` Fix rects calculations for negative arguments
2022-04-13Color: Rename `to_srgb`/`to_linear` to include base color spaceRémi Verschelde
This helps reduce confusion around sRGB <> Linear conversions by making both input and output color spaces explicit.
2022-04-12Remove or make private `FileAccess` `close()` methods.bruvzg
2022-04-12Narrow FileAccess scope to prevent deadlocks.bruvzg
2022-04-11Make FileAccess and DirAccess classes reference counted.bruvzg
2022-04-08Merge pull request #59324 from Zylann/fix_fvec_array_binary_loadRémi Verschelde
Fix loading binary resources with float=64
2022-04-08Fix loading binary resources with float=64Marc Gilleron
- PackedVector2Array - PackedVector3Array - PackedColorArray
2022-04-06Fix some issues found by cppcheck.bruvzg
2022-04-04Zero initialize all pointer class and struct membersRémi Verschelde
This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
2022-03-30Add PortableCompressedTexturereduz
* Resource that allows saving textures embedded in scenes or standalone. * Supports only formats that are portable: Lossy, Lossles or BasisUniversal This is something I wanted to add for a long time. I made it now because @fire requires it for importing GLTF2 files with embedded textures, but also this will allow saving Godot scenes as standalone binary files that will run in all platforms (because textures will load everywhere). This is ideal when you want to distribute individual standalone assets online in games that can be built from Godot scenes.
2022-03-28String: Remove TTR and DTR defines in non-tools buildRémi Verschelde
This ensures we don't use TTR in runtime code, as it's specifically meant to source translations for the editor.
2022-03-27[Net] Drop is_connected_to_host for TCP and UDP.Fabio Alessandrelli
The UDP method is now called `is_socket_connected` to limit confusion with the actual host connection status which doesn't make sense in UDP. The TCP method is completly dropped, use get_status instead. The only one left is the WebSocketPeer one, which should be fine as is for now.
2022-03-27[Net] Make StreamPeerTCP::_poll_connection explicit.Fabio Alessandrelli
No longer hacked into `get_status` and renamed to `poll`. The old `poll` (for *nix `poll`, win `select`) is now called `wait`.
2022-03-26Object: Remove unused category boilerplateRémi Verschelde
We might want to re-add something like this if/when we find a good use case for it and do the effort to categorize all objects in the API properly. Until then, it's better to remove that boilerplate since it's not needed. Closes #18711.
2022-03-23Increase the maximum number of concurrent DNS queries from 32 to 256Hugo Locurcio
This makes the following error message less likely to be printed when performing many concurrent HTTP requests: Condition ' resolving == IP::RESOLVER_INVALID_ID ' is true. returned: ERR_BUG
2022-03-23Fix crash when exporting projects with shared librariesHaoyu Qiu
2022-03-18Add binary MO translation file support.bruvzg
2022-03-17Unify TextServer built-in module and GDExtension code.bruvzg
2022-03-15Merge pull request #45263 from KoBeWi/😕Rémi Verschelde
2022-03-12Merge pull request #58772 from keptsecret/fix_filedialog_user_data_accessRémi Verschelde
Fix unable to change directory in user access mode
2022-03-11Convert uses of `DirAccess *` to `DirAccessRef` to prevent memleaksRémi Verschelde
`DirAccess *` needs to be deleted manually, and this is often forgotten especially when doing early returns with `ERR_FAIL_COND`. `DirAccessRef` is deleted automatically when it goes out of scope. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-03-10Discern between virtual and abstract class bindingsreduz
* Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
2022-03-09fixed unable to change directory in user access modekeptsecret
2022-03-09Change some math macros to constexprkobewi
Changes `MAX`, `MIN`, `ABS`, `CLAMP` and `SIGN`.
2022-03-07Merge pull request #57930 from piiertho/bugfix/add-none-flag-to-resource-saverRémi Verschelde
2022-03-07Fix ResourceSaver::save method exposition flag parameterPierre-Thomas Meisels
enh: Add FLAG_NONE to SaverFlags in ResourceSaver to fix api inconsistency fix: flags parameter of ResourceSaver::save is now uint32_t to allow flag composition in scripts
2022-02-25Print every file exported with `PCKPacker.flush()`s verbose parameterHugo Locurcio
Previously, only one line per 100 files was printed. This also refactors the print statement to use Godot methods and make it more informative overall.
2022-02-19Merge pull request #58166 from Zylann/fix_binary_resource_with_doublesRémi Verschelde
Fix loading of binary resources with 64-bit floats
2022-02-19Merge pull request #58205 from Zylann/fix_variant_encode_with_doublesRémi Verschelde
Add missing flag when encode_variant writes math types with doubles
2022-02-18Fix decompression functions not returning errcodesRicardo Subtil
2022-02-16Add missing flag when encode_variant writes math types with doublesMarc Gilleron
2022-02-16Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde
Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
2022-02-16Fix loading of binary resources with 64-bit floatsMarc Gilleron
2022-02-14Fixed variant decoding Segmentation FaultMax
2022-02-14[ResourceUID] Use CryptoCore::RandomGenerator for IDs.Fabio Alessandrelli
2022-02-12Fix resource reuse in binary loaderreduz
* Reuse was not setting the internal index. * Supersedes #52599, without re-reading all properties.
2022-02-10Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git. Added `misc/scripts/codespell.sh` to make it easier to run it once in a while and update the skip and ignore lists.