aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 6e9fb8a8..527e2f28 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -39,6 +39,7 @@ namespace Crow
internal static bool XmlSerializerInit = false;
/// <summary> keep ressource path for debug msg </summary>
internal static string CurrentGOMLPath = "";
+ internal static int XmlLoaderCount = 0;
public static int TabSize = 4;
public static string LineBreak = "\r\n";
@@ -122,10 +123,12 @@ namespace Crow
public static GraphicObject Load (string path, object hostClass = null)
{
+ Interface.XmlLoaderCount ++;
CurrentGOMLPath = path;
using (Stream stream = GetStreamFromPath (path)) {
return Load(stream, GetTopContainerOfGOMLStream(stream), hostClass);
}
+ Interface.XmlLoaderCount --;
}