diff options
author | Ian C <ianc@noddybox.co.uk> | 2006-09-01 23:48:25 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2006-09-01 23:48:25 +0000 |
commit | 37141ac197eaefeae9dada0bcc1c429ff584df44 (patch) | |
tree | 6bd93dbf3735d22e9dadb9d41ae1c68b980d0c0e /main.c | |
parent | 025fbd0c161c8f528e20f034d84ad986a4ebef36 (diff) |
GEMMA largely working. Fixed broken expressions with white space.
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; } |