Joël Lamotte (Klaim)
5134c82573
Fixes crash in ClassDB::deinitialize due to usage of invalid iterator.
...
After the removed call to `std::vector::erase` all iterators,
`i` included, are invalidated and therefore this code has undefined
behavior (which can or not lead to a crash).
This change delays the removal of class names from
`class_register_order` to after having gone through it's content,
removing the undefined behavior.
2023-10-05 16:58:49 +02:00
David Snopek
cd61a9bbe8
Merge pull request #1257 from dsnopek/script-class-category
...
Update for `get_class_category` added to `GDExtensionScriptInstanceInfo2`
2023-10-04 11:17:41 -05:00
David Snopek
96bec613a0
Merge pull request #1247 from nicholas-maltbie/nickmaltbie/javascript-wasm-fix
...
Javascript Web WASM Fix
2023-10-04 09:58:01 -05:00
David Snopek
6ad187cc7e
Update for `get_class_category` added to `GDExtensionScriptInstanceInfo2`
2023-10-04 09:19:45 -05:00
Rémi Verschelde
98737b2678
Merge pull request #1259 from akien-mga/ci-fix-mingw-install-error
...
CI: Fix MinGW install error by pinning to earlier version
2023-10-04 15:20:37 +02:00
Rémi Verschelde
0369f6fea0
CI: Fix MinGW install error by pinning to earlier version
...
Works around https://github.com/egor-tensin/setup-mingw/issues/14 .
2023-10-04 13:42:49 +02:00
Nick Maltbie
2b4bcbb0ce
Added fix for javascript build for godot 4.x
...
Added changes to tools/javascript.py to add PFlags to fix SharedArrayBuffer memory error.
Corrected some small errors in tools/javascript.py to support new target names.
Also updated ci to include validation for web build.
2023-10-01 13:43:19 -07:00
David Snopek
bf2f9e2f55
Merge pull request #1200 from dsnopek/hot-reload
...
Changes necessary for hot reload to work
2023-09-26 08:38:12 -05:00
David Snopek
df849651d9
Changes necessary for hot reload to work
2023-09-25 22:13:33 -05:00
David Snopek
c44c3d5ebf
Merge pull request #1155 from dsnopek/callable-mp
...
Implement `callable_mp()` and `callable_mp_static()`
2023-09-21 16:20:21 -05:00
David Snopek
c18c1916c3
Implement `callable_mp()` and `callable_mp_static()`
2023-09-21 15:17:50 -05:00
David Snopek
4314f91b7d
Merge pull request #1238 from dsnopek/variant-call-callp
...
Fix variant call compiler error (alternate)
2023-09-21 15:07:05 -05:00
David Snopek
db15731e4d
Merge pull request #1165 from dsnopek/missing-classes
...
Handle missing instance binding callbacks by finding the closest parent
2023-09-21 15:06:51 -05:00
David Snopek
381df0081a
Merge pull request #1220 from adamscott/add-local-custom-support-redux
...
Add support to import custom variables from parent SConstruct (redux)
2023-09-21 15:06:30 -05:00
David Snopek
a963b8b7c7
Merge pull request #1246 from dsnopek/virtual-call-data
...
Update for addition of `get_virtual_call_data_func` and `call_virtual_func` to `GDExtensionClassCreationInfo2`
2023-09-20 14:16:43 -05:00
David Snopek
3a02feddc3
Update for addition of `get_virtual_call_data_func` and `call_virtual_func` to `GDExtensionClassCreationInfo2`
2023-09-20 12:15:31 -05:00
David Snopek
a3dfbbde85
Merge pull request #1245 from AThousandShips/alloc_fix
...
Fix allocation size overflow check in `CowData`
2023-09-20 07:39:27 -05:00
David Snopek
b1fd1b65fd
Merge pull request #1242 from AThousandShips/null_check
...
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
2023-09-20 07:32:14 -05:00
David Snopek
52ca3ef547
Handle missing instance binding callbacks by finding the closest parent
2023-09-19 10:54:07 -05:00
David Snopek
0d6de7a80e
Merge pull request #1164 from dsnopek/classdb-singleton-alternate
...
Add static methods to `ClassDB` for the methods bound to the `ClassDB` singleton
2023-09-19 10:33:15 -05:00
A Thousand Ships
06ffc7e952
Fix allocation size overflow check in `CowData`
2023-09-19 16:14:00 +02:00
David Snopek
73500966ae
Merge pull request #1243 from dsnopek/load-print-error-with-message
...
Load 'print_error_with_message' function
2023-09-15 15:29:33 -05:00
David Snopek
634ed09ec0
Load 'print_error_with_message' function
2023-09-15 14:08:27 -05:00
A Thousand Ships
1e5767693e
Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
2023-09-13 14:34:04 +02:00
Rémi Verschelde
6caf4909d4
Merge pull request #1239 from dsnopek/gdextension-validate-property-object
...
Support `_validate_property()`
2023-09-13 13:44:22 +02:00
David Snopek
aa6867e6c9
Support `_validate_property()`
2023-09-12 13:21:16 -05:00
David Snopek
16ffb2795a
Merge pull request #970 from Daylily-Zeleen/daylily-zeleen/register_unexposed_class
...
Implement register unexposed classes
2023-09-11 09:35:32 -05:00
Matthew Murphy
ca3e25de04
Fix variant call compiler error
...
Co-authored-by: David Snopek <dsnopek@gmail.com>
2023-09-09 11:30:29 -05:00
David Snopek
b488f009bd
Merge pull request #1208 from dsnopek/check-godot-version
...
Check that GDExtension is opened by compatible Godot version
2023-09-09 09:30:36 -05:00
David Snopek
80f98de905
Merge pull request #1237 from DmitriySalnikov/fix-scons-crashes
...
[SCons] Fixed crashes in several scripts
2023-09-09 09:19:38 -05:00
DmitriySalnikov
0e5975dd26
[SCons] Fixed crashes in several scripts
2023-09-09 12:44:14 +03:00
David Snopek
5cdc2fc099
Merge pull request #1214 from dsnopek/ptrtoarg-native-struct
...
Ensure that PtrToArg specializations for native structs are used
2023-09-08 10:12:23 -05:00
David Snopek
adcc95534b
Merge pull request #1231 from godotengine/dependabot/github_actions/actions/checkout-4
...
Bump actions/checkout from 3 to 4
2023-09-07 17:46:16 -05:00
David Snopek
82e960a810
Merge pull request #1233 from AThousandShips/wrapper_fix
...
Ensure `const` correctness for wrappers
2023-09-07 08:27:38 -05:00
A Thousand Ships
f651df5e7a
Ensure `const` correctness for wrappers
2023-09-06 19:33:03 +02:00
dependabot[bot]
5d4ff63930
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 19:13:12 +00:00
Adam Scott
982e01ec7f
Add support to import custom variables from parent SConstruct (redux)
2023-09-04 15:05:52 -04:00
Daylily-Zeleen
2d1f852baf
Implement register unexposed class.
2023-09-04 00:59:10 +08:00
David Snopek
0db95a92a6
Merge pull request #1228 from Bromeon/bugfix/yet-another-bool
...
GDExtension: fix `bool` unknown in C
2023-09-02 16:13:51 -05:00
David Snopek
8990d5a40e
Merge pull request #1091 from Daylily-Zeleen/daylily-zeleen/implement_builtin_classes_vararg_methods
...
Implement vararg methods of builtin classes.
2023-09-02 08:04:29 -05:00
Jan Haller
54092861f1
GDExtension: fix `bool` unknown in C
2023-09-02 13:19:14 +02:00
David Snopek
9ada7065d6
Merge pull request #1226 from AThousandShips/version_str
...
Fix formatting of `compatibility_minimum` examples
2023-08-31 08:17:51 -05:00
A Thousand Ships
b3596a18e1
Fix formatting of `compatibility_minimum` examples
...
Without quotes the values is parsed as a float, breaking in various
cases.
2023-08-31 12:45:11 +02:00
David Snopek
9a6c741d5d
Merge pull request #1151 from Sauermann/fix-notification-order
...
Fix `Object::notification` order (cpp-bindings)
2023-08-30 14:19:51 -05:00
Markus Sauermann
c2d99fd519
Fix `Object::notification` order
...
For the notification-order to work correctly, it is necessary to
allow the `p_reversed` argument to be used within cpp.
This PR changes the necessary bindings.
2023-08-30 00:07:28 +02:00
David Snopek
dd9586b841
Merge pull request #1190 from Faless/build/godotcpp_tool
...
[SCons] Move the GodotCPP build to its own tool.
2023-08-29 13:07:38 -05:00
Fabio Alessandrelli
f8b4f60cb9
[SCons] Move the GodotCPP build to its own tool.
2023-08-29 18:14:42 +02:00
David Snopek
6d9416eb17
Merge pull request #1225 from dsnopek/placeholder-script-instance
...
Add support for placeholder_script_instance_create/update
2023-08-29 09:39:05 -05:00
David Snopek
f0405f18a3
Add support for placeholder_script_instance_create/update
2023-08-28 17:02:13 -05:00
Rémi Verschelde
c370f0f24a
Merge pull request #1221 from dsnopek/readme-improvements
...
Clarify versions and examples in the README
2023-08-17 17:14:07 +02:00