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:
Tom Stellard 2020-12-13 14:56:19 -08:00
parent 6ac8d9cb74
commit ecbae9da08
1 changed files with 2 additions and 2 deletions

View File

@ -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])))))