mirror of https://github.com/tstellar/bygfoot.git
Call gtk_init() after main_init()
main_init() would need to be called no matter what user interface is used, so we should call it before initializing the user interface.
This commit is contained in:
parent
6ac8d9cb74
commit
ecbae9da08
|
@ -422,10 +422,10 @@ main (gint argc, gchar *argv[])
|
|||
int fd2 = open ("stderr.log", O_CREAT|O_WRONLY|O_TRUNC, 0666);
|
||||
dup2 (fd2, 2);
|
||||
#endif
|
||||
gtk_init (&argc, &argv);
|
||||
|
||||
main_init(&argc, &argv);
|
||||
|
||||
gtk_init (&argc, &argv);
|
||||
|
||||
if((load_last_save && !load_game_from_command_line("last_save")) ||
|
||||
(!load_last_save && (argc == 1 ||
|
||||
(argc > 1 && !load_game_from_command_line(argv[1])))))
|
||||
|
|
Loading…
Reference in New Issue