summaryrefslogtreecommitdiffstats
path: root/modules/mono/mono_gd/gd_mono.h
diff options
context:
space:
mode:
authorRaul Santos <raulsntos@gmail.com>2023-10-16 02:55:52 +0200
committerRaul Santos <raulsntos@gmail.com>2023-10-16 05:07:11 +0200
commitbe1dfd3b3ab53b5ea6678b1ca974864385e55272 (patch)
tree58ef7685e8f731eb744862cb55202774170f1863 /modules/mono/mono_gd/gd_mono.h
parenta574c0296b38d5f786f249b12e6251e562c528cc (diff)
downloadredot-engine-be1dfd3b3ab53b5ea6678b1ca974864385e55272.tar.gz
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.
Diffstat (limited to 'modules/mono/mono_gd/gd_mono.h')
-rw-r--r--modules/mono/mono_gd/gd_mono.h6
1 files changed, 3 insertions, 3 deletions
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();