summaryrefslogtreecommitdiff
path: root/modules/mono/mono_gd
AgeCommit message (Collapse)Author
2020-02-05Remove duplicate WARN_PRINT macro.Marcel Admiraal
2020-02-05Remove duplicate ERR_PRINT macro.Marcel Admiraal
2020-01-16Mono/C#: Script interface calls now attach the current threadIgnacio Etcheverry
Added guards to all C# script interface calls to attach the current thread for the current scope if the thread is not already attached. This is far from ideal, as attaching the thread is not cheap and all managed thread local storage is lost when we detach the thread at the end of the calls. However, it's the best we can do for now to avoid crashing when an unattached thread tries to interact with C# code.
2020-01-15Mono: Fix parsing assembly names as UTF-8Rémi Verschelde
Fixes #27185.
2020-01-13Mono/C#: Add error checks to detect possible Reference leaksIgnacio Etcheverry
2020-01-02Mono/C#: Make 'GD.Print' and its variants fallback to 'ToString()'Ignacio Etcheverry
Up until now, 'GD.Print' would convert parameters first to Variant and only then to String. This meant parameters that cannot be converted to Variant would be printed as "Null". This commit makes 'GD.Print' fallback to 'System.Object.ToString()' if the parameter could not be converted to Variant. The same applies to all 'GD.Print' variants: 'GD.PrintS', 'GD.PrintT', 'GD.PrintErr' and 'GD.PrintRaw'.
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-25Mono/C#: Fix memory leak with new Reference instances created from C#Ignacio Etcheverry
2019-12-19Merge pull request #34465 from neikeq/no-hardcode-debugger-waitRémi Verschelde
Mono/C#: Remove hard-coded debugger wait at initialization
2019-12-19Mono/C#: Remove hard-coded debugger wait at initializationIgnacio Etcheverry
Up until now debug builds would always wait up to 500 ms during initialization to give time for debuggers to attach to the game. We no longer want this as it increases startup time unnecesarily. The way forward is to setup the debugger agent as client instead of server. This way it's the game that connect to the debugger, not the other way around. If server mode is still desired, suspend=y can be used to indefinitely wait for the debugger to attach. This all can be specified with the environment variable 'GODOT_MONO_DEBUGGER_AGENT' when launching the game.
2019-12-19Mono/C#: Fix Variant -> MonoString* when type is Variant:NILIgnacio Etcheverry
`Variant::operator String()` returns "Null" if the type is `Variant:NIL`. We must consider that and return a null `MonoString*` instead when marshalling. This was also causing a "Null" error to be displayed when exporting a game because null string members would be set to "Null" during hot-reload.
2019-12-16Merge pull request #34382 from van800/profilerRémi Verschelde
Allow attaching any external profiler, including JetBrains dotTrace
2019-12-16Allow attaching any external profiler, including JetBrains dotTraceIvan Shakhov
2019-12-16Mono: Enable threads suspend workaround on WindowsRémi Verschelde
This appears to be necessary for current official builds cross-compiled with MinGW from Linux, using Mono 6.6.0.160. Follow-up to #31784, see #29812 for details.
2019-12-13doc: Sync classref with current sourceRémi Verschelde
Also apply clang-format.
2019-12-04Mono/C#: Several android fixesIgnacio Etcheverry
- Added correct config file for android dllmaps. - Fix __Internal DllImports with a dlopen fallback. - Add missing P/Invoke functions and internal calls expected by the monodroid BCL and our custom version of the 'Android.Runtime.AndroidEnvironment' class (this last one can be found in the godot-mono-builds repo). - Make sure to set 'btls' instead of 'legacy' as the default TLS provider on Android.
2019-11-29Mono/C#: Add option to export assemblies outside of PCKIgnacio Etcheverry
When using this options, assemblies will be saved in the Assemblies folder of the data directory: 'data_AppName/Assemblies/'.
2019-11-22Style: Add missing copyright headersRémi Verschelde
2019-11-15Mono/C#: Initial exporter support for AOT compilationIgnacio Etcheverry
2019-11-13Mono/C#: WebAssembly supportIgnacio Etcheverry
2019-10-12C#: Fix regression from #32732 caused a crash on domain reloadIgnacio Etcheverry
2019-10-11Mono: Fix template build after #32732Rémi Verschelde
2019-10-11C#: Fix detection of outdated release Godot API assembliesIgnacio Etcheverry
2019-09-28Merge pull request #32401 from neikeq/Kisaama!Ignacio Roldán Etcheverry
Mono: Don't compare API hashes on release builds
2019-09-28Mono: Don't compare API hashes on release buildsIgnacio Etcheverry
API hashes cannot be calculated on release builds, as bindings information is lacking. Therefore, we should not be comparing it with the generated glue hash as they will never match.
2019-09-26Merge pull request #32353 from neikeq/yameroRémi Verschelde
Mono: Improve API assembly load error message on exported games
2019-09-26Merge pull request #32352 from neikeq/issue-32237Rémi Verschelde
Mono: Don't use project settings for debugger agent on exported games
2019-09-25Mono: Improve API assembly load error message on exported gamesIgnacio Etcheverry
2019-09-25Mono: Don't use project settings for debugger agent on exported gamesIgnacio Etcheverry
2019-09-25Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde
Added some obvious errors explanations
2019-09-25Added some obvious errors explanationsqarmin
2019-09-20C#: Make sure cs_glue_version is present when building export templatesIgnacio Etcheverry
2019-09-08Mono: Fix unable to create log file due to str_format bugIgnacio Etcheverry
2019-08-30Mono: Force preemptive thread suspend mode as a temporary workaroundIgnacio Etcheverry
2019-08-28Style: Fix copyright headers in new filesRémi Verschelde
2019-08-26Fix 'android_mono_config.gen.cpp' not compiled first time it's generatedIgnacio Etcheverry
2019-08-14Merge pull request #31347 from neikeq/monodevelop-addinRémi Verschelde
C#: Add Ide Connection library and server for the editor
2019-08-09Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in 'modules/mono'Ignacio Etcheverry
And 'CRASH_*_MSG' as well. Also make error messages puntuation and quotation more consistent.
2019-08-04C#: Add Ide Connection library and server for the editorIgnacio Etcheverry
This will be used for communicating between the Godot editor and external IDEs/editors, for things like opening files, triggering hot-reload and running the game with a debugger attached.
2019-07-25Mono: Don't try to update project assemblies from project managerIgnacio Etcheverry
Previously, when running the project manager, we would try to load the API assemblies from the project and fail because we were not editing any project. This would make us try to copy the prebuilt API assemblies to the project. Since there is no project, it would try to copy them to the executable location. This would fail if Godot doesn't have permissions to write to that location. This commit fixes that by instead trying to load the prebuilt API assemblies in the first place, if running the project manager.
2019-07-24Mono: Add option to keep running after unhandled exceptionsIgnacio Etcheverry
By default, an unhandled exception will cause the application to be terminated; but the project setting `mono/unhandled_exception_policy` was added to change this behaviour. The editor is hard-coded to never terminate because of unhandled exceptions, as that would make writing editor plugins a painful task, and we cannot kill the editor because of a mistake in a thirdparty plugin.
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-20Fix mono module build errors for release templatesIgnacio Etcheverry
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-09Merge pull request #30463 from neikeq/fix-search-dirsRémi Verschelde
Fix export templates ignoring assemblies in 'res://.mono/assemblies'
2019-07-09Fix export templates ignoring assemblies in 'res://.mono/assemblies'Ignacio Etcheverry
2019-07-08Mono: Fix build errors with tools=noIgnacio Etcheverry
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-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-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.