aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2017-03-10 19:34:56 +0100
committerMarvin W <git@larma.de>2017-03-10 19:50:34 +0100
commit29ca70a6d534e1cd79963718c793ae740318cff1 (patch)
tree295bc0a88b9f31f103bc970fbdcd2d940d6c83e2 /main/src
parentcf51e1dee22273366700c41a185c4bea343dddfe (diff)
downloaddino-29ca70a6d534e1cd79963718c793ae740318cff1.tar.gz
dino-29ca70a6d534e1cd79963718c793ae740318cff1.zip
Initial plugin system
Diffstat (limited to 'main/src')
-rw-r--r--main/src/main.vala20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/src/main.vala b/main/src/main.vala
new file mode 100644
index 00000000..80f9bea5
--- /dev/null
+++ b/main/src/main.vala
@@ -0,0 +1,20 @@
+using Dino.Entities;
+using Dino.Ui;
+
+namespace Dino {
+
+void main(string[] args) {
+ Gtk.init(ref args);
+ Dino.Ui.Application app = new Dino.Ui.Application();
+ PluginLoader loader = new PluginLoader();
+ foreach(string plugin in new string[]{}) {
+ try {
+ loader.load(plugin, app);
+ } catch (Dino.PluginError e) {
+ print(@"Error loading plugin $plugin: $(e.message)\n");
+ }
+ }
+ app.run(args);
+}
+
+} \ No newline at end of file