Merge pull request #117617 from raulsntos/dotnet/fix-116169

Revert "[.NET] Remove EFS update on reloading assemblies" but with deferred call
This commit is contained in:
Thaddeus Crews
2026-03-19 10:20:00 -05:00
@@ -356,6 +356,20 @@ namespace Godot.Bridge
}
}
}
// This method may be called before initialization.
if (NativeFuncs.godotsharp_dotnet_module_is_initialized().ToBool() && Engine.IsEditorHint())
{
if (_pathTypeBiMap.Paths.Count > 0)
{
Callable.From(() =>
{
string[] scriptPaths = _pathTypeBiMap.Paths.ToArray();
using godot_packed_string_array scriptPathsNative = Marshaling.ConvertSystemArrayToNativePackedStringArray(scriptPaths);
NativeFuncs.godotsharp_internal_editor_file_system_update_files(scriptPathsNative);
}).CallDeferred();
}
}
}
[UnmanagedCallersOnly]