X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Femugtk.c;h=656a07e249763b4e7ba6c3880aa68f39bbb54255;hb=7b400e8dd6a3f1a50247b74283c76e34f9e20ba1;hp=4b256f96c08ad9b00b81b8caf3c36b38b793e141;hpb=ac54ee974bcfab656fd5cad6f6057dd5dd1bca04;p=emu8051.git diff --git a/src/emugtk.c b/src/emugtk.c index 4b256f9..656a07e 100644 --- a/src/emugtk.c +++ b/src/emugtk.c @@ -53,6 +53,7 @@ static int running_function_tag; GtkWidget *mainwin; extern struct app_config_t *cfg; +extern struct options_t options; /* Step out of running state */ static void @@ -430,10 +431,7 @@ emugtk_new_file(char *file) int main(int argc, char **argv) { - char *hex_file; - - ParseCommandLineOptions(argc, argv); - + parse_command_line_options(argc, argv); app_config_load(); cpu8051_init(); @@ -444,10 +442,8 @@ main(int argc, char **argv) emugtk_window_init(); - hex_file = get_hex_filename(); - - if (hex_file != NULL) - emugtk_new_file(hex_file); + if (options.filename != NULL) + emugtk_new_file(options.filename); else emugtk_Reset();