summaryrefslogtreecommitdiff
path: root/src/bin/main.c
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2014-09-11 11:28:10 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-09-11 14:30:12 +0300
commitb837cd1ac79f6d33fcfb1ec55dfd1622c7adc0ba (patch)
tree917bacbe60b34e5358014f9e601ecf73dc7f169d /src/bin/main.c
parent659b76a96fe4ddc5fc09ef9707bda6895a90bd62 (diff)
Fix shutdown sequence on exit.
Diffstat (limited to 'src/bin/main.c')
-rw-r--r--src/bin/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 6bf0481..2d05015 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -250,8 +250,12 @@ main(int argc, char **argv)
250 { 250 {
251#ifdef GUI_MODE 251#ifdef GUI_MODE
252 elm_init(argc, argv); 252 elm_init(argc, argv);
253 egui_start(filename); 253 egui_start();
254 egui_project_open(filename);
254 elm_run(); 255 elm_run();
256 egui_project_close();
257 egui_stop();
258 elm_shutdown();
255#else 259#else
256 printf("You are trying to use \"egui_cmd\" in graphic mode. Nothing is going to happen :)\n"); 260 printf("You are trying to use \"egui_cmd\" in graphic mode. Nothing is going to happen :)\n");
257#endif 261#endif
@@ -266,10 +270,6 @@ main(int argc, char **argv)
266 { 270 {
267 _generate(filename, new_filename, export_format); 271 _generate(filename, new_filename, export_format);
268 } 272 }
269#ifdef GUI_MODE
270 if (mode == MODE_GUI)
271 elm_shutdown();
272#endif
273 if (mode == MODE_SIMULATE) 273 if (mode == MODE_SIMULATE)
274 elm_shutdown(); 274 elm_shutdown();
275 egui_shutdown(); 275 egui_shutdown();