Commit Graph

1797 Commits

Author SHA1 Message Date
0cc88f34da Add support for delta encoding to patch PCKs 2025-11-26 13:52:19 +01:00
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
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
985a5e95a9 Add back I/O error-handling to FileAccessPack constructor 2025-11-25 14:38:16 +01:00
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
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
090a4540b7 Use RequiredParam and RequiredResult in a handful of places in order to test 2025-11-24 12:12:10 -06:00
d454e1a1e0 [FileAccess] Implement support for reading and writing extended file attributes/alternate data streams. 2025-11-24 11:18:25 +02:00
6145b0ca29 Add Image.load_exr_from_buffer and enable tinyexr by default 2025-11-21 18:58:26 +01:00
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
6e047a0287 Fix bug where optional argument is not validated before use 2025-11-19 13:19:29 -05:00
e14263f917 Remove empty constructors and destructors from core/ 2025-11-17 20:09:05 +01:00
43e323dce5 Remove TranslationPO 2025-11-15 10:13:07 +08:00
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
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
3fa73d4f5f FileAccessMemory: prevent seeking past end of file 2025-11-02 12:40:51 -08:00
ae9732139a Merge pull request #109433 from KoBeWi/hastension
Add `has_extension()` method to String
2025-10-31 09:23:30 -05:00
eaa80e62a8 Merge pull request #108076 from timothyqiu/resource-loader-unused
Remove unused methods in `ResourceLoader`
2025-10-30 10:45:55 -05:00
c885098266 Remove unused methods in ResourceLoader 2025-10-30 08:13:20 +08:00
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
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
37764110f6 Merge pull request #110271 from BlueCube3310/image-conv-opti-incompatible
Image: Optimize manual format conversion
2025-10-22 13:48:46 -05:00
4266a4e4eb Image: Fix normalization of mipmaps for half and float formats 2025-10-22 15:03:57 +02:00
b63ec3d0f0 Image: Optimize format conversion 2025-10-22 14:30:18 +02:00
3d4f248fda Round values after renormalization when generating mipmaps. 2025-10-20 13:36:41 +03:00
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
49219de402 Merge pull request #108862 from timothyqiu/plural-rules
Move context and plural support to `Translation`
2025-10-15 16:31:07 -05:00
b802229423 Core: Support INF/NAN in JSON from/to native 2025-10-13 13:57:55 -05:00
8b06cdf277 Revert "Handle NaN and Infinity in JSON stringify function" 2025-10-10 18:22:24 -07:00
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
e6783dbdd1 Improve to_string() and add it to Resource 2025-10-09 00:54:38 +02:00
5935a32e32 Core: Cleanup headers in core/config
- `MainLoop` now forward-declared in `OS`
2025-10-06 09:20:56 -05:00
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
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
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
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
9d44b68867 Remove rw_lock.h and rb_map.h includes from object.h. 2025-10-05 23:29:04 +02:00
ead282ff13 Remove file_access.h and script_backtrace.h includes from logger.h. 2025-10-05 17:49:23 +09:00
1db0a60dc0 Replace std::size usage with std_size to avoid <iterator> include. 2025-10-05 00:26:11 +02:00
38af23a654 Merge pull request #89409 from aaronfranke/server-folders
Move server files into their subfolders
2025-10-03 12:01:00 -05:00
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
f9be832eca Merge pull request #110257 from BlueCube3310/mip-gen-all-formats
Image: Support generating mipmaps for all uncompressed formats
2025-10-01 13:12:40 -05:00
c993db9688 Add reserve_exact to CowData and Vector.
Change growth factor to be an indeterministic 1.5x.
Use `reserve_exact` in `FileAccess` to reduce on binary file loading RAM usage.

# Conflicts:
#	core/templates/cowdata.h
2025-10-01 11:57:40 +02:00
3d1c9fd5de Move server files into their subfolders 2025-09-30 19:39:39 -07:00
5a1bc65e06 Merge pull request #110058 from Rinnegatamante/pc_upstream
Perform per-line or per-rect blits in blit_rect.
2025-09-30 18:35:22 -05:00
6b22951162 Merge pull request #107954 from stuartcarnie/unix_domain_socket_support
Add Core UNIX domain socket support
2025-09-30 18:35:08 -05:00
e256771e86 Merge pull request #108836 from aaronfranke/json-grisu
Use num_scientific (Grisu2) when stringifying JSON with full precision
2025-09-30 11:19:12 -05:00
fdf32d1b2a Merge pull request #108577 from YYF233333/global_class_list
Simplify `ScriptServer::get_global_class_list`
2025-09-30 11:19:10 -05:00
f6fc2f4a08 Core: Remove skip_cr argument from String 2025-09-28 10:07:24 -05:00
4e80190a46 Move context and plural support to Translation
- `TranslationPO` is now an empty class. It exists for compatibility.
- `OptimizedTranslation` stays the same, no context or plural support.
2025-09-26 10:51:57 +08:00