From 5fd3ef4e787c636aafc7cb71d25fd8d9eda336b0 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Fri, 30 Nov 2018 21:45:44 +0100 Subject: Implement CSharpScript::is_valid() --- modules/mono/csharp_script.cpp | 4 ---- modules/mono/csharp_script.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'modules/mono') diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp index 8bc459c4fd..e3df0246ab 100644 --- a/modules/mono/csharp_script.cpp +++ b/modules/mono/csharp_script.cpp @@ -2594,10 +2594,6 @@ void CSharpScript::update_exports() { #endif } -bool CSharpScript::is_valid() const { - return true; //TODO return false if invalid -} - bool CSharpScript::has_script_signal(const StringName &p_signal) const { if (_signals.has(p_signal)) return true; diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h index c9143587fd..269d7ebe42 100644 --- a/modules/mono/csharp_script.h +++ b/modules/mono/csharp_script.h @@ -169,7 +169,7 @@ public: virtual void update_exports(); virtual bool is_tool() const { return tool; } - virtual bool is_valid() const; + virtual bool is_valid() const { return valid; } virtual Ref