root / branches / simulator / projects / simulator / simulator / core / player.c @ 1068
History | View | Annotate | Download (424 Bytes)
1 |
#include <stdlib.h> |
---|---|
2 |
#include <stdio.h> |
3 |
#include <gtk/gtk.h> |
4 |
#include <glib.h> |
5 |
|
6 |
#include "gtk_gui.h" |
7 |
#include "robot.h" |
8 |
#include "world.h" |
9 |
#include "logger.h" |
10 |
|
11 |
int playLog(int argc, char** argv) |
12 |
{ |
13 |
load_world("../test/world.txt", 100); |
14 |
|
15 |
g_thread_init(NULL);
|
16 |
gdk_threads_init(); |
17 |
printf("g thread create\n");
|
18 |
g_thread_create(logger_step_loop, NULL, TRUE, NULL); |
19 |
printf("run\n");
|
20 |
gtk_gui_run(argc, argv); |
21 |
|
22 |
return 0; |
23 |
} |
24 |
|
25 |
|