mirror of https://github.com/godotengine/godot
Merge pull request #77377 from RedworkDE/net-sendtodebugger-crash
C#: Fix `SendToScriptDebugger` crash
This commit is contained in:
commit
ea5322fce2
|
|
@ -103,7 +103,7 @@ namespace Godot.NativeInterop
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (NativeFuncs.godotsharp_internal_script_debugger_is_active())
|
if (NativeFuncs.godotsharp_internal_script_debugger_is_active().ToBool())
|
||||||
{
|
{
|
||||||
SendToScriptDebugger(e);
|
SendToScriptDebugger(e);
|
||||||
}
|
}
|
||||||
|
|
@ -122,7 +122,7 @@ namespace Godot.NativeInterop
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (NativeFuncs.godotsharp_internal_script_debugger_is_active())
|
if (NativeFuncs.godotsharp_internal_script_debugger_is_active().ToBool())
|
||||||
{
|
{
|
||||||
SendToScriptDebugger(e);
|
SendToScriptDebugger(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ namespace Godot.NativeInterop
|
||||||
in godot_string p_file, int p_line, in godot_string p_err, in godot_string p_descr,
|
in godot_string p_file, int p_line, in godot_string p_err, in godot_string p_descr,
|
||||||
godot_bool p_warning, in DebuggingUtils.godot_stack_info_vector p_stack_info_vector);
|
godot_bool p_warning, in DebuggingUtils.godot_stack_info_vector p_stack_info_vector);
|
||||||
|
|
||||||
internal static partial bool godotsharp_internal_script_debugger_is_active();
|
internal static partial godot_bool godotsharp_internal_script_debugger_is_active();
|
||||||
|
|
||||||
internal static partial IntPtr godotsharp_internal_object_get_associated_gchandle(IntPtr ptr);
|
internal static partial IntPtr godotsharp_internal_object_get_associated_gchandle(IntPtr ptr);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue