public void LoadPlugins(string path = "scripts") { if (Directory.Exists(path)) { var e = Directory.EnumerateFiles(path).GetEnumerator(); string error; int i = WriteLine("Loading Plugins: "); while (e.MoveNext()) { window.Clear(); window.DispatchEvents(); Draw(window); if (!ScriptCompiler.Load(e.Current, out error, this)) { WriteLine(error); } WriteLine("{0} loaded successfully", e.Current); window.Display(); } Write(i, " Done"); window.Display(); } }