Changeset 0edef06 in buchla-emu for emu/main.c
- Timestamp:
- 08/06/2017 08:20:22 AM (7 years ago)
- Branches:
- master
- Children:
- 3523847
- Parents:
- 59ea67d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/main.c
r59ea67d r0edef06 41 41 const char *bios = "bios.abs"; 42 42 const char *disk = "buchla.disk"; 43 const char *font = "ttf/vera-sans-mono.ttf"; 43 44 44 45 SDL_atomic_t run; … … 46 47 static void usage(FILE *fh) 47 48 { 48 fprintf(fh, "usage: buchla [-h] [-v comp [-v comp [...]]] [-b bios] [-d disk] \n");49 fprintf(fh, "usage: buchla [-h] [-v comp [-v comp [...]]] [-b bios] [-d disk] [-f font]\n"); 49 50 fprintf(fh, "where comp is one of: "); 50 51 … … 83 84 84 85 disk = argv[i]; 86 continue; 87 } 88 89 if (strcmp(argv[i], "-f") == 0) { 90 if (++i == argc) { 91 usage(stderr); 92 fprintf(stderr, "missing argument to -f\n"); 93 exit(1); 94 } 95 96 font = argv[i]; 85 97 continue; 86 98 }
Note:
See TracChangeset
for help on using the changeset viewer.