Ignacio Etcheverry
cf1c127c23
Mono: Fix null dereferences
...
(cherry picked from commit 5aefe5d936
)
2018-07-28 16:06:30 +02:00
Ignacio Etcheverry
31f8d3525d
Add Array and Dictionary wrapper classes to C#
...
(cherry picked from commit ee3c476c9a
)
2018-07-28 16:06:30 +02:00
Ignacio Etcheverry
e1cf8dc2cb
Mono: Pending exceptions and cleanup
...
(cherry picked from commit 4739cb8c00
)
2018-07-28 16:06:30 +02:00
Rémi Verschelde
c709dff1a2
Style: Format code with clang-format 6.0.1
...
(cherry picked from commit 7c9f7452f4
)
Travis: Update style checks to clang-format 6.0.1
(cherry picked from commit 003ac67df1
)
2018-07-18 16:37:23 +02:00
Ignacio Etcheverry
84e1551c64
Mono: Null checks when marshaling from MonoArray* and managed Dictionary
...
(cherry picked from commit 7933a6cc9f
)
2018-07-08 15:39:15 +02:00
Hein-Pieter van Braam
e649ec71df
Fix some missed changes from a cherrypick
2018-06-13 12:21:29 +00:00
bruvzg
518a691231
Mono: Allow loading `mscorlib` from resources.
...
(cherry picked from commit b3ddf12fb1
)
2018-06-13 11:57:40 +00:00
Carter Anderson
5d2ad1e5c7
Reduce allocations when converting mono arrays to pool arrays
...
(cherry picked from commit 56262ceafe
)
2018-06-01 18:04:54 +02:00
Ignacio Etcheverry
94b4bb2a12
Mono: Fix MonoImage filename being set to an invalid path
...
(cherry picked from commit 97fb999976
)
2018-06-01 17:33:51 +02:00
Paul Joannon
81eb60434a
[mono] fix signals parameter retrieval
...
(cherry picked from commit 7a72395412
)
2018-05-16 12:27:45 +02:00
Paul Joannon
486f4d2769
[mono] add the 'Facades' subfolder to the searched directories in _preload_hook
...
(cherry picked from commit 22606a7bec
)
2018-04-29 13:54:16 +02:00
Ignacio Etcheverry
bfc94dd4c9
Mono: Runtime main args and assembly search fixes
...
- Setup runtime main args during initialization. This must be done manually by embedders who do not call mono_runtime_run_main. Fixes NullReferenceException in System.Environment.
- Continue to search the assembly in the rest of the search locations if loading it from one of them failed.
(cherry picked from commit fa1d656af4
)
2018-04-15 00:48:15 +02:00
Hein-Pieter van Braam
e4fadebc3b
Fix a merge error
2018-04-15 00:43:26 +02:00
Ignacio Etcheverry
9e4d34aebb
Mono: Add project export plugin
...
(cherry picked from commit 9fd606c549
)
2018-04-15 00:04:14 +02:00
Hein-Pieter van Braam
4e1d19b20c
Revert "[Mono] Basis values now marshalled in the correct order."
...
This reverts commit 9173819b71
.
The fixes for these issues aren't quite baked yet. Taking them out of
3.0.2
2018-02-27 17:52:18 +01:00
Hein-Pieter van Braam
d7430ef077
Revert "The marshalling in was also incorrect."
...
This reverts commit b6f958965b
.
The fixes for these issues aren't quite baked yet. Taking them out of
3.0.2
2018-02-27 17:52:18 +01:00
Ignacio Etcheverry
f6c65d9d15
Mono: Buildsystem improvements
...
- Bundle with mscorlib.dll to avoid compatibilities issues
- Add build option 'mono_assemblies_output_dir' to specify the output directory where the assemblies will be copied to. '#bin' by default.
(cherry picked from commit a45697d8df
)
2018-02-27 11:35:19 +01:00
Paul Joannon
87242c7b92
fix build error when compiling with mono, tools=no, target=release
...
change TTR to RTR in `print_unhandled_exception`
(cherry picked from commit 90a705d671
)
2018-02-27 11:25:10 +01:00
Paul Joannon
58a7d78c22
[mono] get stacktraces for all inner exceptions
...
(cherry picked from commit 89af6c2cd7
)
2018-02-26 23:55:13 +01:00
Nathan Warden
b6f958965b
The marshalling in was also incorrect.
...
(cherry picked from commit 60daa9d718
)
2018-02-26 22:45:53 +01:00
Ignacio Etcheverry
dde14e15c6
Mono: Better versioning and gracefully unloading of Godot API assemblies
...
(cherry picked from commit f37090ccf4
)
2018-02-26 22:36:03 +01:00
Nathan Warden
9cfcf102a0
[Mono] Fixed "expression did not evaluate to a constant" compiler error for visual studio.
...
(cherry picked from commit 72fe70272d
)
2018-02-21 22:12:57 +01:00
Paul Joannon
9cba5ef772
implement signal related methods in csharp_script so signals can be used with emit
...
(cherry picked from commit cfbd7fd21e
)
2018-02-19 22:39:51 +01:00
Paul Joannon
416cd9c8b8
add a [Signal] attribute to CSharpScripts
...
(cherry picked from commit efd52cd172
)
2018-02-19 22:39:44 +01:00
Pieter-Jan Briers
4b581104e7
Makes project manager never initialize mono debug.
...
The heuristic whether we're in the project manager inside GDMono
didn't work if the project manager was launched by not having any path
to run.
This is fixed now by making a Main::is_project_manager().
(cherry picked from commit 1099838079
)
2018-02-19 22:32:17 +01:00
Nathan Warden
9173819b71
[Mono] Basis values now marshalled in the correct order.
...
(cherry picked from commit 0cc4de1f24
)
2018-02-19 22:13:45 +01:00
Paolo Perkovic
7de47fbabb
Fix inconsistencies and typos in argument names
...
(cherry picked from commit 08d4bfacaf
)
2018-02-04 20:10:13 +01:00
Ignacio Etcheverry
562ec3f5e6
Mono: Don't defer call to dispose queue objects when finalizing domain
...
It's going to be called anyway after `mono_domain_finalize`.
This also prevents crashes, since the MessageQueue singleton could already be freed at this point (see: #15702 ).
2018-01-26 01:10:25 +01:00
Paul Joannon
76a615aea4
SignalAwaiter::_signal_callback was calling the thunk with a wrong pointer
2018-01-23 12:58:54 +01:00
Paul Joannon
1eb9c7e6cb
RID cached class was wrong (mono)
2018-01-22 14:01:20 +01:00
Paul Joannon
e0ce249621
fix GDMonoProperty::set_value
...
was calling getter and not setter
should close #15387
2018-01-21 12:29:49 +01:00
Paul Joannon
2dc6725cc4
remove an unneeded marshalling function
...
`Variant mono_object_to_variant(MonoObject*, const ManagedType&)`
2018-01-18 10:33:43 +01:00
Ignacio Etcheverry
bff9627dc4
Mono: Some StackTrace to StackInfo[] fixes
...
- Sometimes `StackFrame.GetMethod()` returns null (e.g.: latest frame of a `MissingMethodException`). Still not sure what to do with that frame (maybe skip it), but at least it no longer fails.
- Skip `CSharpLanguage::debug_get_current_stack_info()` if an error is printed from `GDMonoUtils::update_corlib_cache()`.
- Fix crash when calling `GDMonoUtils::print_unhandled_exception(exc)` if there is no ScriptDebugger attached.
2018-01-12 19:31:15 +01:00
Ignacio Etcheverry
f7de51b3a6
Mono: Some fixes for #15463
2018-01-09 22:27:55 +01:00
Ignacio Etcheverry
5be356b72f
Mono: Implement stack info for errors and exceptions
2018-01-09 17:19:03 +01:00
Rémi Verschelde
0e6e98a65f
Fix build of GDMonoField
...
Closes #15385 .
2018-01-06 11:06:05 +01:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Ignacio Etcheverry
119a910bc6
Mono: Add properties support in scripts
2018-01-04 21:16:22 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Ignacio Etcheverry
b271aa48e4
Mono: Script lifetime fixes
...
- alloc_language_binding: Use strong GC handle as well for references. Fixes #15138
- Set the native instance field of Godot.Object to IntPtr.Zero when it's freed.
- Create weak handles without tracking resurrection (that was causing trouble). This means we have to call notification predelete before queueing a native Object for deletion, and use the MonoObject* passed by the finalizer because the weak GC handle target will return NULL at this point.
2018-01-01 03:05:13 +01:00
Noshyaar
ab444a8ca9
Merge pull request #14996 from neikeq/enums-mono
...
Mono: Make the bindings generator output enums
2017-12-27 10:29:00 +07:00
Ignacio Etcheverry
0a0a44da8d
Mono: Make the bindings generator output enums
...
- Switch to PascalCase for constants names
2017-12-24 04:20:41 +01:00
Ignacio Etcheverry
6e3d4ee9a6
Marshal NULL MonoString* as empty Godot string
2017-12-24 03:32:40 +01:00
PJB3005
7368a0e0f0
Fix fatal mono logs not getting logged to disk.
...
They aborted the application without flushing the log file.
Also there was a typo.
2017-12-19 17:36:33 +01:00
Rémi Verschelde
13c2ff9320
Style: Apply new clang-format 5.0 style to all files
2017-12-07 08:02:00 +01:00
Ignacio Etcheverry
b51b3dc030
Mono: Fix compiler error with Variant::operator AABB()
2017-11-18 18:13:57 +01:00
Ferenc Arn
d28763a4c1
Rename Rect3 to AABB.
...
Fixes #12973 .
2017-11-17 11:01:41 -05:00
Ignacio Etcheverry
3c97a9543d
Merge pull request #12549 from neikeq/seriously-do-they
...
Mono cleanup fixes
2017-11-01 01:56:16 +01:00
Ignacio Etcheverry
a018cbaee1
Fix thread checking to queue instances for deletion
2017-11-01 01:51:12 +01:00
Ignacio Etcheverry
0525b63421
Use mono_gc_wbarrier_set_arrayref for Array marshalling
2017-11-01 00:17:34 +01:00