Fix missing mono internal call
- Also fixed uninitalized variable in buildscript
This commit is contained in:
parent
a4e4dd3966
commit
e463834a8b
2 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,7 @@ def find_msbuild_unix(filename):
|
||||||
def find_msbuild_windows():
|
def find_msbuild_windows():
|
||||||
import mono_reg_utils as monoreg
|
import mono_reg_utils as monoreg
|
||||||
|
|
||||||
|
mono_root = ''
|
||||||
bits = env['bits']
|
bits = env['bits']
|
||||||
|
|
||||||
if bits == '32':
|
if bits == '32':
|
||||||
|
|
|
@ -183,6 +183,10 @@ MonoBoolean godot_icall_MonoDevelopInstance_IsApplicationBundleInstalled(MonoStr
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MonoString *godot_icall_Utils_OS_GetPlatformName() {
|
||||||
|
return GDMonoMarshal::mono_string_from_godot(OS::get_singleton()->get_name());
|
||||||
|
}
|
||||||
|
|
||||||
void GodotSharpEditor::register_internal_calls() {
|
void GodotSharpEditor::register_internal_calls() {
|
||||||
|
|
||||||
static bool registered = false;
|
static bool registered = false;
|
||||||
|
@ -190,6 +194,7 @@ void GodotSharpEditor::register_internal_calls() {
|
||||||
registered = true;
|
registered = true;
|
||||||
|
|
||||||
mono_add_internal_call("GodotSharpTools.Editor.MonoDevelopInstance::IsApplicationBundleInstalled", (void *)godot_icall_MonoDevelopInstance_IsApplicationBundleInstalled);
|
mono_add_internal_call("GodotSharpTools.Editor.MonoDevelopInstance::IsApplicationBundleInstalled", (void *)godot_icall_MonoDevelopInstance_IsApplicationBundleInstalled);
|
||||||
|
mono_add_internal_call("GodotSharpTools.Utils.OS::GetPlatformName", (void *)godot_icall_Utils_OS_GetPlatformName);
|
||||||
|
|
||||||
GodotSharpBuilds::register_internal_calls();
|
GodotSharpBuilds::register_internal_calls();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue