1
0
Fork 0
Commit Graph

1806 Commits

Author SHA1 Message Date
Raul Santos 8355286fc7
Remove underscore from parameter name in `FileAccess::set_extended_attribute_string` 2025-12-12 14:20:13 +01:00
Thaddeus Crews ed1ec3a0ee
Merge pull request #111387 from Chaosed0/core/fix-resource-loader-ignore-cache
Fix `load_threaded_get` returning `null` when used with `CACHE_MODE_IGNORE`
2025-12-10 18:10:27 -06:00
kobewi 60591dc7e8 Add reverse UID cache 2025-12-08 12:40:14 +01:00
David Snopek 308f23f21d Synchronize the names for `RequiredParam<T>` arguments in header files 2025-12-03 04:14:52 -06:00
Pāvels Nadtočajevs e815a8f899
Do not attempt deleting local cache in `Resource::_teardown_duplicate_from_variant`. 2025-12-03 08:07:50 +02:00
Rémi Verschelde a1848013e5
Merge pull request #113114 from RandomShaper/fix_load_progress_cycles
ResourceLoader: Fix potential infinite recursion in progress reporting
2025-12-02 14:16:27 +01:00
Pedro J. Estébanez 5806e3c761 ResourceLoader: Fix potential infinite recursion in progress reporting 2025-12-01 12:33:48 +01:00
Mikael Hermansson 3e97ee7750 Replace usage of Zstandard advanced API 2025-11-27 14:28:16 +01:00
Mikael Hermansson 0cc88f34da Add support for delta encoding to patch PCKs 2025-11-26 13:52:19 +01:00
Thaddeus Crews f34c270452
Merge pull request #113150 from mihe/file-access-pack-errors
Add back I/O error-handling to `FileAccessPack` constructor
2025-11-25 12:55:12 -06:00
Thaddeus Crews 158f13aebf
Merge pull request #102232 from bruvzg/xattr
[FileAccess] Implement support for reading and writing extended file attributes/alternate data streams.
2025-11-25 09:52:37 -06:00
Mikael Hermansson 985a5e95a9 Add back I/O error-handling to `FileAccessPack` constructor 2025-11-25 14:38:16 +01:00
Thaddeus Crews 6e69760134
Merge pull request #111967 from Ivorforce/object-cast-to-protect
Statically protect `Object::cast_to` for unrelated `Object` types.
2025-11-25 07:06:48 -06:00
Lukas Tenbrink 0f047944e4 Statically protect `Object::cast_to` for unrelated `Object` types.
Fix a handful of bugs associated with it.
2025-11-24 23:03:22 +01:00
David Snopek 090a4540b7 Use `RequiredParam` and `RequiredResult` in a handful of places in order to test 2025-11-24 12:12:10 -06:00
Pāvels Nadtočajevs d454e1a1e0
[FileAccess] Implement support for reading and writing extended file attributes/alternate data streams. 2025-11-24 11:18:25 +02:00
metamuffin 6145b0ca29
Add Image.load_exr_from_buffer and enable tinyexr by default 2025-11-21 18:58:26 +01:00
Thaddeus Crews a79b155298
Merge pull request #112969 from ashwinvbs/bugfix
Fix bug where optional argument is not validated before use
2025-11-20 11:10:49 -06:00
Ashwin Balasubramaniyan 6e047a0287 Fix bug where optional argument is not validated before use 2025-11-19 13:19:29 -05:00
kobewi e14263f917 Remove empty constructors and destructors from core/ 2025-11-17 20:09:05 +01:00
Haoyu Qiu 43e323dce5 Remove `TranslationPO` 2025-11-15 10:13:07 +08:00
Thaddeus Crews 9a9e64a6ee
Merge pull request #108981 from DeeJayLSP/faster-uid-path-from-cache
Make getting a path from UID cache slightly faster
2025-11-13 17:43:00 -06:00
Thaddeus Crews cef4a7805f
Merge pull request #111772 from nikitalita/fix-fmem-integer-underflow
Fix buffer over-read in `FileAccessMemory::get_buffer`
2025-11-04 16:32:29 -06:00
nikitalita 3fa73d4f5f FileAccessMemory: prevent seeking past end of file 2025-11-02 12:40:51 -08:00
Thaddeus Crews ae9732139a
Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
2025-10-31 09:23:30 -05:00
Thaddeus Crews eaa80e62a8
Merge pull request #108076 from timothyqiu/resource-loader-unused
Remove unused methods in `ResourceLoader`
2025-10-30 10:45:55 -05:00
Haoyu Qiu c885098266 Remove unused methods in `ResourceLoader` 2025-10-30 08:13:20 +08:00
Aaron Franke cc13a376c5
Handle NaN and Infinity in JSON stringify function
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>
Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-10-29 12:06:40 -07:00
Thaddeus Crews 881058009f
Merge pull request #111522 from Repiteo/core/to-from-native
Core: Support `INF`/`NAN` in JSON from/to native
2025-10-29 13:13:48 -05:00
Thaddeus Crews 37764110f6
Merge pull request #110271 from BlueCube3310/image-conv-opti-incompatible
Image: Optimize manual format conversion
2025-10-22 13:48:46 -05:00
BlueCube3310 4266a4e4eb Image: Fix normalization of mipmaps for half and float formats 2025-10-22 15:03:57 +02:00
BlueCube3310 b63ec3d0f0 Image: Optimize format conversion 2025-10-22 14:30:18 +02:00
Skyth 3d4f248fda Round values after renormalization when generating mipmaps. 2025-10-20 13:36:41 +03:00
Thaddeus Crews 60710df3b6
Merge pull request #94047 from KoBeWi/resource_printer
Improve `to_string()` and add it to Resource
2025-10-16 12:48:11 -05:00
Thaddeus Crews 49219de402
Merge pull request #108862 from timothyqiu/plural-rules
Move context and plural support to `Translation`
2025-10-15 16:31:07 -05:00
Thaddeus Crews b802229423
Core: Support `INF`/`NAN` in JSON from/to native 2025-10-13 13:57:55 -05:00
Clay John 8b06cdf277
Revert "Handle NaN and Infinity in JSON stringify function" 2025-10-10 18:22:24 -07:00
Thaddeus Crews 21e5b41642
Merge pull request #108837 from aaronfranke/json-handle-nan-inf
Handle NaN and Infinity in JSON stringify function
2025-10-10 10:25:55 -05:00
kobewi e6783dbdd1 Improve to_string() and add it to Resource 2025-10-09 00:54:38 +02:00
Ed Lu 49efe2b3b8 load_threaded_get doesn't return null resources when used with CACHE_MODE_IGNORE 2025-10-07 16:31:27 -07:00
Thaddeus Crews 5935a32e32
Core: Cleanup headers in `core/config`
- `MainLoop` now forward-declared in `OS`
2025-10-06 09:20:56 -05:00
Thaddeus Crews d1d28c0bcf
Merge pull request #111223 from Ivorforce/remove-iterator-include
Replace `std::size` usage with `std_size` to avoid `<iterator>` include.
2025-10-06 09:06:49 -05:00
Thaddeus Crews 30a0a41982
Merge pull request #111274 from chocola-mint/include-optimization-logger
Remove `file_access.h` and `script_backtrace.h` includes from `logger.h`.
2025-10-06 09:06:32 -05:00
Thaddeus Crews ef5ecd95d7
Merge pull request #111254 from Ivorforce/object-no-rb-rw
Remove `rw_lock.h` and `rb_map.h` includes from `object.h`.
2025-10-06 09:06:29 -05:00
Juan faddd60c40
Add unique Node IDs to support base and instantiated scene refactorings
The main goal of this PR is to safeguard when a base or instantiated scene changes (nodes renamed, moved or readded),
that the hierarchy is still maintained and the node and its overridden properties can be preserved.

What it does:
* Implements unique node IDs.
* These IDs act as a fallback to names when saving.
* The IDs are **USED AS A FALLBACK**, so they are just an addition. It should not break any current existing scene.
* If a scene renames or moves a node, inherited or instantiated scenes will no longer lose reference to it.

Unlike the previous approach, this one is intended to be a fallback, only used if the node is not found.
This makes it safer to implement and ensure that, at worst case, we fail to find the node, but nothing breaks.
2025-10-06 12:55:38 +02:00
Lukas Tenbrink 9d44b68867 Remove `rw_lock.h` and `rb_map.h` includes from `object.h`. 2025-10-05 23:29:04 +02:00
chocola-mint ead282ff13 Remove `file_access.h` and `script_backtrace.h` includes from `logger.h`. 2025-10-05 17:49:23 +09:00
Lukas Tenbrink 1db0a60dc0 Replace `std::size` usage with `std_size` to avoid `<iterator>` include. 2025-10-05 00:26:11 +02:00
Thaddeus Crews 38af23a654
Merge pull request #89409 from aaronfranke/server-folders
Move server files into their subfolders
2025-10-03 12:01:00 -05:00
Thaddeus Crews 6bfcfd1d33
Merge pull request #106039 from Ivorforce/cowdata-reserve-exact
Add `reserve_exact` to `CowData`, and change growth factor to 1.5x
2025-10-01 13:12:43 -05:00