summaryrefslogtreecommitdiff
path: root/modules/mono
AgeCommit message (Collapse)Author
2018-08-24Merge pull request #20717 from PJB3005/18-08-04-godot-exceptionsIgnacio Etcheverry
Fix Mono exception handling.
2018-08-24Merge pull request #20707 from aaronfranke/mono-combineIgnacio Etcheverry
[Mono] Move several related small files
2018-08-24Add print_verbose to print to stdout only in verbose modeRémi Verschelde
Equivalent of the cumbersome: if (OS::get_singleton()->is_stdout_verbose()) print_line(msg);
2018-08-23Fix Mono exception handling.Pieter-Jan Briers
First of all, this fixes the handling of exceptions so the engine actually notices them, it was broken in 4172fa03b56bb60fe096639585e0ca40df73b677. Next, unhandled exceptions now do NOT cause an abort(). They're logged now, so before #16987. The pending exception thing still works though.
2018-08-23[Mono] Move several small related filesAaron Franke
2018-08-23[Mono] AABB - Position, Size, End setters, Rect2 - End setterKelly Thomas
2018-08-23Merge pull request #21240 from aaronfranke/mono-project-vectorRémi Verschelde
[Mono] Vector2/3 Project methods
2018-08-22Merge pull request #21174 from KellyThomas/c-sharp-feature-parity-rect2Ignacio Etcheverry
[Mono] Rect2 - add Abs(), rename private fields
2018-08-22[Mono] Vector2/3 Project methodsAaron Franke
2018-08-22Mono: Fix weird crash when loading corlibIgnacio Etcheverry
2018-08-22Merge pull request #18502 from space-wizards/18-04-29-assembly-load-hookIgnacio Etcheverry
assembly_load_hook fallback for registering GDMonoAssemblies.
2018-08-21Style: Fix issues that went past CIRémi Verschelde
2018-08-21Merge pull request #21253 from aaronfranke/plane-constantsRémi Verschelde
Rename Plane constants, add to Mono
2018-08-21Deprecate incorrect Color::gray()Rémi Verschelde
This average is not a proper approximation of a grayscale value, get_v() is better suited for that. If we want a real to_grayscale() conversion, it's somewhat more involved: https://en.wikipedia.org/wiki/Grayscale Remove the deprecated Gray() from C# bindings as it conflicts with new named color constants.
2018-08-21Rename Plane constants, add to MonoAaron Franke
But I'm not tagging PR as [Core] or [Mono] due to it being a minor change anyway.
2018-08-20Prevent "cannot use a string pattern on a bytes-like object"Justin Abene
Fixes #21207
2018-08-19mono: add Abs() to Rect2 and rename private fieldsKelly Thomas
2018-08-17Mono: Improve C# core files (glue/cs_files) buildsystemIgnacio Etcheverry
- Search C# files recursively in 'glue/cs_files'. - Determine a version for the C# core files automatically. The latest modified time will do for now.
2018-08-15Merge pull request #20945 from neikeq/dict-erase-retboolRémi Verschelde
Dictionary: remove erase_checked(key), make erase(key) return bool
2018-08-14Merge pull request #20583 from neikeq/issue-15371Rémi Verschelde
Fix case where exported properties value is lost
2018-08-15mono: add constants to transform and vector structsKelly Thomas
2018-08-14Dictionary: remove erase_checked(key), make erase(key) return boolIgnacio Etcheverry
2018-08-14Merge pull request #20890 from KellyThomas/mono-is-instance-validIgnacio Etcheverry
mono: add IsInstanceValid(), move WeakRef()
2018-08-14mono: add IsInstanceValid(), move WeakRef()Kelly Thomas
2018-08-14SCons: Fix mono_root initializationRémi Verschelde
As advised by @neikeq.
2018-08-13Merge pull request #20706 from mysticfall/issue-20705Ignacio Etcheverry
Add missing GetPtr() for Dictionary<> and Array<>
2018-08-13Fixed absent variable exception while trying to raise another exception.Teashrock
2018-08-10Added system for GDScript warningsGeorge Marques
- Count and panel per script. - Ability to disable warnings per script using special comments. - Ability to disable warnings globally using Project Settings. - Option to treat enabled warnings as errors.
2018-08-10Revert "added get_creation_time function for gdscript"Juan Linietsky
2018-08-10Merge pull request #18914 from notwarp/masterJuan Linietsky
added get_creation_time function for gdscript
2018-08-04Add missing GetPtr() for Dictionary<> and Array<>Xavier Cho
Add missing GetPtr() method for generic versions of Dictionary and Array to fix #20705.
2018-08-04Merge pull request #20600 from exts/new_generic_methodsIgnacio Etcheverry
Mono: Added generic methods for PackedScene & ResourceLoader
2018-08-03Added generic method for ResourceLoader: Load<T>()exts
2018-08-01Merge pull request #20644 from NickToony/masterIgnacio Etcheverry
Fixed Windows mono compile
2018-07-31fixed: windows mono compile (#20598)Nick Hope
tidy: formatting.
2018-07-31Merge pull request #20639 from neikeq/issue-20531-and-cleanupIgnacio Etcheverry
Mono: Fix property set_value and cleanup
2018-07-31Mono: Fix property set_value and cleanupIgnacio Etcheverry
2018-07-29Fix case where exported properties value is lostIgnacio Etcheverry
Fixes exported property modified values lost when creating a placeholder script instance with a failed script compilation - Object set/get will call PlaceHolderScriptInstance's new fallback set/get methods as a last resort. This way, placeholder script instances can keep the values for storage or until the script is compiled successfuly. - Script::can_instance() will only return true if a real script instance can be created. Otherwise, in the case of placeholder script instances, it will return false. - Object::set_script(script) is now in charge of requesting the creation of placeholder script instances. It's no longer Script::instance_create(owner)'s duty. - PlaceHolderScriptInstance has a new method set_build_failed(bool) to determine whether it should call into its script methods or not. - Fixed a few problems during reloading of C# scripts.
2018-07-29Fix Mono compilation on Windows/MingHein-Pieter van Braam
(cherry picked from commit 83140541dc91c29a288d7dd71044780b50b2cc4b)
2018-07-27Running builder (content generator) functions in subprocesses on WindowsViktor Ferenczi
- Refactored all builder (make_*) functions into separate Python modules along to the build tree - Introduced utility function to wrap all invocations on Windows, but does not change it elsewhere - Introduced stub to use the builders module as a stand alone script and invoke a selected function There is a problem with file handles related to writing generated content (*.gen.h and *.gen.cpp) on Windows, which randomly causes a SHARING VIOLATION error to the compiler resulting in flaky builds. Running all such content generators in a new subprocess instead of directly inside the build script works around the issue. Yes, I tried the multiprocessing module. It did not work due to conflict with SCons on cPickle. Suggested workaround did not fully work either. Using the run_in_subprocess wrapper on osx and x11 platforms as well for consistency. In case of running a cross-compilation on Windows they would still be used, but likely it will not happen in practice. What counts is that the build itself is running on which platform, not the target platform. Some generated files are written directly in an SConstruct or SCsub file, before the parallel build starts. They don't need to be written in a subprocess, apparently, so I left them as is.
2018-07-27Add missing methods to Node class in the mono gluePaul Joannon
* GetNodeOrNull<T> * GetChild<T> * GetChildOrNull<T> * GetOwner<T> * GetOwnerOrNull<T> * GetParent<T> * GetParentOrNull<T>
2018-07-26Merge pull request #18282 from aaronfranke/better-mathfRémi Verschelde
[Core] [Mono] Fix Color missing int export methods, added 64-bit
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-25[Mono] Fix Color incorrect ordering of int export methods, added 64-bitAaron Franke
[Mono] Fix Color incorrect ordering of int export methods, added 64-bit long export methods.
2018-07-25Fix continuous attempt to reload domain with API assemblies out of syncIgnacio Etcheverry
2018-07-25Mono: Fix domain reload never triggeringIgnacio Etcheverry
2018-07-25Fix '!valid' error spam on C# script instance createIgnacio Etcheverry
2018-07-25Mono: Fix null dereferencesIgnacio Etcheverry
2018-07-25Merge pull request #20298 from PJB3005/18-07-20-mono-partial-api-extIgnacio Etcheverry
Makes Mono binding classes partial & adds GetNode<T>.
2018-07-23Merge pull request #15880 from neikeq/better-collectionsIgnacio Etcheverry
Mono: Add Dictionary and Array classes