diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -38,6 +38,8 @@ static const char ident[]="$Id$"; int main (int argc, char *argv[]) { + int f; + GtkWidget *top_window; gtk_set_locale (); @@ -48,7 +50,6 @@ int main (int argc, char *argv[]) DialogParent(top_window); GEMMA_Init(top_window); - GEMMA_UpdateDisplay(UPDATE_ALL_VIEWS); AppendText(lookup_widget(top_window,"log_view"), "GEMMA, Copyright (C) 2006 Ian Cowburn\n" @@ -57,7 +58,17 @@ int main (int argc, char *argv[]) "to redistribute it under certain conditions;\n" "See the GNU General Public License for details.\n"); - gtk_main (); + for(f=1;f<argc;f++) + { + if (argv[f][0]=='@') + GEMMA_LoadLabels(argv[f]+1); + else + GEMMA_LoadHEX(argv[f]); + } + + GEMMA_UpdateDisplay(UPDATE_ALL_VIEWS); + + gtk_main(); return 0; } |