3 * Copyright (C) 2007 LAVAL Jérémie
5 * This file is licensed under the terms of the LGPL.
7 * For the complete licence see the file COPYING.
17 public static class CircMain
19 static MainControl mainControl
;
21 public static void Main(string[] args
)
23 Logger
.Debug("Circ starting...");
25 Logger
.Debug("Initializing the Addin manager");
26 Mono
.Addins
.AddinManager
.Initialize(Path
.Combine(Environment
.GetFolderPath(Environment
.SpecialFolder
.Personal
), ".Circ"));
27 Mono
.Addins
.AddinManager
.Registry
.Update(null);
29 mainControl
= new MainControl();
30 Circ
.Plugins
.Shop
.MainControl
= mainControl
;
32 Logger
.Debug("Cross your fingers, it's beginning");
34 mainControl
.WaitForInit();
35 //System.Threading.Thread.Sleep(3000);
36 Logger
.Debug("Initialization finalized");
39 Logger
.Debug("Loading Plugins");
40 PluginsContainer
.LoadPlugins();
43 } catch (Exception ex
) {
44 mainControl
.Frontend
.ShowErrorMessage("An error has occured during the execution : " + ex
.Message
);
47 PluginsContainer
.Unload();
48 mainControl
.Dispose();
52 GC
.WaitForPendingFinalizers();
55 public static void PrintUsageInformation()
57 Console
.WriteLine("Circ, IRC client for the GNU/Linux plateform\n(c) 2006 LAVAL Jérémie\n\n"+
58 "Usage information : circ [OPTIONS]\n\nOPTIONS can be"+
59 ":\n\t-server:hostname Connect to the specified IRC server");
63 /*private static void LoadPlugins()
65 plugins = new PluginLoader();
68 } catch (PluginException e) {
69 log.Error(e.Message, e);