summaryrefslogtreecommitdiff
path: root/modules/mono
AgeCommit message (Collapse)Author
2019-07-23Added count method to StringChaosus
2019-07-22Mono: Fix editor API assembly not being updatedIgnacio Etcheverry
If both the core and editor API assemblies are missing or out of sync, Godot will only update the former and then abort when trying to load them again because the latter was not updated. Godot will update it correctly the next time it's started, but this should not be needed and it should work the first time. This commit fixes that.
2019-07-20Merge pull request #30710 from neikeq/issue-30526Ignacio Roldán Etcheverry
Fix mono module build errors for release templates
2019-07-20Fix mono module build errors for release templatesIgnacio Etcheverry
2019-07-20Added lerp_angles built-in functionChaosus
Co-authored-by: Xrayez <https://github.com/Xrayez> Co-authored-by: DleanJeans <https://github.com/DleanJeans>
2019-07-14Merge pull request #30584 from neikeq/yattaIgnacio Roldán Etcheverry
Mono: Better handling of missing/outdated API assemblies
2019-07-14Mono: Better handling of missing/outdated API assembliesIgnacio Etcheverry
Remove the old API assembly invalidation system. It's pretty simple since now the editor has a hard dependency on the API assemblies and SCons takes care of prebuilding them. If we fail to load a project's API assembly because it was either missing or outdated, we just copy the prebuilt assemblies to the project and try again. We also do this when creating the solution and before building, just in case the user removed them from the disk after they were loaded. This way the API assemblies will be always loaded successfully. If they are not, it's a bug. Also fixed: - EditorDef was behaving like GlobalDef in GodotTools. - NullReferenceException because we can't serialize System.WeakReference yet. Use Godot.WeakRef in the mean time.
2019-07-11Some small fixes to warnings in python scriptsunknown
2019-07-11Mono: Add old TTRs to GodotToolsIgnacio Etcheverry
2019-07-10Merge pull request #30502 from neikeq/chotto-matte-kudasaiIgnacio Roldán Etcheverry
Mono: Fix Api HintPath and update old game projects
2019-07-10Merge pull request #30501 from neikeq/dispose-godotsharpexportIgnacio Roldán Etcheverry
Mono: Fix null dereference in EditorExportPlatformAndroid
2019-07-10Mono: Fix Api HintPath and update old game projectsIgnacio Etcheverry
Fixed Api assembly references with more than one HintPath. Also made the editor update old C# projects use the new Api assembly HintPaths.
2019-07-10Mono: Fix null dereference in EditorExportPlatformAndroidIgnacio Etcheverry
We need to dispose the GodotSharpExport export plugin before the editor destroys EditorSettings. Otherwise, if the GC disposes it at a later time, EditorExportPlatformAndroid will be freed after EditorSettings already was, and its device polling thread will try to access the EditorSettings singleton, resulting in null dereferencing.
2019-07-10Merge pull request #30486 from neikeq/fix-indexoutofbounds-msbuildfinderIgnacio Roldán Etcheverry
Fix IndexOutOfBounds in FindMsBuildToolsPathOnWindows
2019-07-10Merge pull request #30489 from neikeq/fix-nullexc-on-gengameprojIgnacio Roldán Etcheverry
Mono: Fix null exception in GenerateGameProject
2019-07-10Mono: Fix null exception in GenerateGameProjectIgnacio Etcheverry
Also fix pdb files for GodotTools.*.dll assemblies not being copied to the output directory.
2019-07-10Merge pull request #30485 from neikeq/remove-frameworkpathoverride-from-sconsIgnacio Roldán Etcheverry
SCons no longer passes FrameworkPathOverride to MSBuild
2019-07-10Fix IndexOutOfBounds in FindMsBuildToolsPathOnWindowsIgnacio Etcheverry
2019-07-10SCons no longer passes FrameworkPathOverride to MSBuildIgnacio Etcheverry
2019-07-10Mono: Add missing GodotTools.slnIgnacio Etcheverry
2019-07-09Fix EditorNavigationMeshGenerator registered in Core APIIgnacio Etcheverry
Also added an option to output a json file with all the ClassDB registered classes and its members. This can be used to compare the API of two different builds by a simple diff.
2019-07-09Merge pull request #30463 from neikeq/fix-search-dirsRémi Verschelde
Fix export templates ignoring assemblies in 'res://.mono/assemblies'
2019-07-09Make SCons check for System MSBuild before Mono'sIgnacio Etcheverry
2019-07-09Fix export templates ignoring assemblies in 'res://.mono/assemblies'Ignacio Etcheverry
2019-07-09Merge pull request #30428 from neikeq/gitcheckout-bRémi Verschelde
Misc Mono Fixes
2019-07-08Mono: Fix build errors with tools=noIgnacio Etcheverry
2019-07-08C#: Fix some crashes during assemblies reloadingIgnacio Etcheverry
2019-07-08Fix Godot.Object.ToString() infinite recursionIgnacio Etcheverry
Should not be using Variant to String conversion as that would call ToString() again
2019-07-08Fix --generate-mono-glue bug when directory doesn't existIgnacio Etcheverry
DirAccess::get_full_path(path) only works if the path exists. Implement our own abspath function.
2019-07-08Fix C# bindings detection of abstract classesIgnacio Etcheverry
ClassDB::can_instance was changed recently breaking our code, as the editor is not yet initialized. Check ClassInfo::creation_func directly.
2019-07-08Fix InvalidCastException when loading script metadataIgnacio Etcheverry
Old value wasn't string so we have to keep that in mind
2019-07-07Fixes minor issues found by static analyzerqarmin
2019-07-05Script API methods must return Ref<T> instead of Reference*Ignacio Etcheverry
ptrcall assumes methods that return a Reference type do so with Ref<T>. Returning Reference* from a method exposed to the scripting API completely breaks ptrcalls to this method (it can be quite hard to debug!).
2019-07-05Re-write mono module editor code in C#Ignacio Etcheverry
Make the build system automatically build the C# Api assemblies to be shipped with the editor. Make the editor, editor player and debug export templates use Api assemblies built with debug symbols. Always run MSBuild to build the editor tools and Api assemblies when building Godot. Several bugs fixed related to assembly hot reloading and restoring state. Fix StringExtensions internal calls not being registered correctly, resulting in MissingMethodException.
2019-07-03Merge pull request #30293 from neikeq/issue-29734Rémi Verschelde
Mono: Fix Array IndexOutOfRangeException not being thrown
2019-07-03Merge pull request #30292 from neikeq/android_fixesRémi Verschelde
Mono: Android build and shared libraries fixes
2019-07-03Mono: Fix Array IndexOutOfRangeException not being thrownIgnacio Etcheverry
2019-07-03Mono: Android build and shared libraries fixesIgnacio Etcheverry
Fix location of Mono's shared libraries. Fix build failing if the directory 'platform/android/java/libs/{target}/{abi}' doesn't exist.
2019-07-03SCons: Use CPPDEFINES instead of CPPFLAGS for pre-processor definesRémi Verschelde
It's the recommended way to set those, and is more portable (automatically prepends -D for GCC/Clang and /D for MSVC). We still use CPPFLAGS for some pre-processor flags which are not defines.
2019-07-01Remove unnecessary code and add some error explanationsqarmin
2019-06-26Some code changed with Clang-Tidyqarmin
2019-06-19Made use of semicolons more consitent, fixed formattingJohnJLight
2019-06-18Unexpose subclasses of ResourceFormatLoader and -SaverRémi Verschelde
ResourceFormatLoader and ResourceFormatSaver are meant to be overridden to add support for different formats in ResourceLoader and ResourceSaver. Those should be exposed as they can be overridden in plugins. On the other hand, all predefined subclasses of those two base classes are only meant to register support for new file and resource types, but should not and cannot be used directly from script, so they should not be exposed. Also unexposed ResourceImporterOGGVorbis (and thus its base class ResourceImporter) which are editor-only.
2019-06-15Mono: Fix -Wduplicated-branches warningRémi Verschelde
2019-06-08Merge pull request #29606 from neikeq/remove-unneeded-mono-patchesIgnacio Roldán Etcheverry
Remove obsolete mono patch for pthread_mutexattr_setprotocol
2019-06-08Remove obsolete mono patch for pthread_mutexattr_setprotocolIgnacio Etcheverry
This has already been fixed in Mono both master and 2019-06 (no other branch other than the skipped 2019-04 branch uses pthread_mutexattr_setprotocol).
2019-06-04Mono: Fix SCons options added to the wrong environmentIgnacio Etcheverry
2019-06-03Android build and export for the mono moduleIgnacio Etcheverry
2019-06-03Merge pull request #28099 from lupoDharkael/fix-completionRémi Verschelde
Fix code completion not working with class_name
2019-06-01Merge pull request #27789 from Giacom/move_towardsRémi Verschelde
Added move_toward functions for float, Vector2 and Vector3