From be1dfd3b3ab53b5ea6678b1ca974864385e55272 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Mon, 16 Oct 2023 02:55:52 +0200 Subject: C#: Allow exporting games without C# When exporting a game that contains a C# solution, a feature is added so the exported game can check if it should initialize the .NET module. Otherwise, the module initialization is skipped so games without C# won't check for the assemblies and won't show alerts when they're missing. --- modules/mono/mono_gd/gd_mono.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/mono/mono_gd/gd_mono.h') diff --git a/modules/mono/mono_gd/gd_mono.h b/modules/mono/mono_gd/gd_mono.h index c629ab2eff..530936cfb4 100644 --- a/modules/mono/mono_gd/gd_mono.h +++ b/modules/mono/mono_gd/gd_mono.h @@ -72,6 +72,7 @@ class GDMono { #ifdef TOOLS_ENABLED bool _load_project_assembly(); + void _try_load_project_assembly(); #endif uint64_t api_core_hash = 0; @@ -149,10 +150,9 @@ public: Error reload_project_assemblies(); #endif + bool should_initialize(); + void initialize(); -#ifdef TOOLS_ENABLED - void initialize_load_assemblies(); -#endif GDMono(); ~GDMono(); -- cgit v1.2.3