X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fmorpheus.git;a=blobdiff_plain;f=main.c;fp=main.c;h=b2ca816cb61b8b5e425b4600039c4fed4534026f;hp=08c6a6c42be5bea2c3a0b230da94bf9b2ba53884;hb=00fb126a46fcf6591e153d2c81da2dd522700c4b;hpb=8d3f810a0ef6906e51969d4afb1f00302cd025d9 diff --git a/main.c b/main.c index 08c6a6c..b2ca816 100644 --- a/main.c +++ b/main.c @@ -55,6 +55,7 @@ int usage() puts("-R \t read random data from file (default not used)"); puts("-D \t dump cell info into (default not used)"); puts("-L \t load cell info and display it (default no)"); + puts("-n \t do not wait for user interaction (default no)"); return -23; } @@ -255,6 +256,7 @@ int main(int argc,char **argv) int quit=0; /* continue/quit status */ char save_file[MAX_CHARS_SAVE_FILE]; char load_file[MAX_CHARS_LOAD_FILE]; + unsigned char no_wait; printfd("debug: sizeof my u32 variable: %d\n",sizeof(u32)); printfd("debug: sizeof my cell struct: %d\n",sizeof(cell)); @@ -279,6 +281,7 @@ int main(int argc,char **argv) strcpy(random_file,""); strcpy(save_file,""); strcpy(load_file,""); + no_wait=0; /* parse command args */ for(i=1;i