blob: 86f071d15ca9b39230aa78f469f9a60c71cdf1ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include <stdlib.h>
#include <stdio.h>
#include "gui/gui.h"
#include "MLV/MLV_path.h"
int main(int argc, char **argv) {
if (argc < 3) {
fprintf(stderr, "Not enough argument (2 correct pathfiles required)\n");
exit(-1);
}
if (argc > 3) {
fprintf(stderr, "Too much arguments (2 correct pathfiles required)\n");
exit(-2);
}
if (!(MLV_path_is_a_file(argv[1])) || !(MLV_path_is_a_file(argv[2]))) {
fprintf(stderr, "One path is incorrect\n");
exit(-3);
};
GUI *gui = gui_create(argv[1], argv[2]);
while (mode != EXITING) {
gui_handle_event(gui);
}
gui_destroy(gui);
return 0;
}
|