Explorar o código

Qualify Console's namespace to avoid mixup with plugin's objects

Avoid error when a plugin contains a class called "Console":
Godot.SourceGenerators\Godot.SourceGenerators.GodotPluginsInitializerGenerator\GodotPlugins.Game.generated.cs(32,25): error CS0117: 'Console' does not contain a definition for 'Error'
Treer %!s(int64=2) %!d(string=hai) anos
pai
achega
273df44e1d

+ 1 - 1
modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/GodotPluginsInitializerGenerator.cs

@@ -48,7 +48,7 @@ namespace GodotPlugins.Game
             }
             catch (Exception e)
             {
-                Console.Error.WriteLine(e);
+                System.Console.Error.WriteLine(e);
                 return false.ToGodotBool();
             }
         }