Changeset 0edef06 in buchla-emu
- Timestamp:
- 08/06/2017 08:20:22 AM (7 years ago)
- Branches:
- master
- Children:
- 3523847
- Parents:
- 59ea67d
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r59ea67d r0edef06 4 4 midas.elf 5 5 6 build/* 6 7 buchla 7 8 buchla.exe -
emu/all.h
r59ea67d r0edef06 63 63 extern const char *bios; 64 64 extern const char *disk; 65 extern const char *font; 65 66 66 67 extern SDL_atomic_t run; -
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 } -
emu/ser.c
r59ea67d r0edef06 37 37 #define CON_FGR ((SDL_Color){ .r = 255, .b = 255, .g = 255, .a = 255 }) 38 38 39 #define CON_FONT "ttf/vera-sans-mono.ttf"40 41 39 #define REG_IER_ISR 0 42 40 #define REG_CFR_SR 1 … … 287 285 SDL_AtomicSet(&frame, 1); 288 286 289 SDL_RWops *ops = SDL_RWFromFile( CON_FONT, "rb");287 SDL_RWops *ops = SDL_RWFromFile(font, "rb"); 290 288 291 289 if (ops == NULL) { 292 fail("error while opening font file " CON_FONT ": %s", SDL_GetError());290 fail("error while opening font file %s: %s", font, SDL_GetError()); 293 291 } 294 292 … … 296 294 297 295 if (fon == NULL) { 298 fail("error while loading font file " CON_FONT ": %s", TTF_GetError());296 fail("error while loading font file %s: %s", font, TTF_GetError()); 299 297 } 300 298
Note:
See TracChangeset
for help on using the changeset viewer.