Changeset 2449 for www/img2oric/img2oric.c
- Timestamp:
- Jun 18, 2008, 5:59:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
www/img2oric/img2oric.c
r2394 r2449 9 9 * improve Floyd-Steinberg coefficient values 10 10 * Jun 14, 2008: Win32 version 11 * Jun 18, 2008: add meaningful error messages 11 12 * 12 13 * This program is free software. It comes without any warranty, to … … 424 425 425 426 if(argc < 2) 427 { 428 fprintf(stderr, "Error: missing argument.\n"); 429 fprintf(stderr, "Usage: img2oric <image>\n"); 426 430 return 1; 431 } 427 432 428 433 #if defined _WIN32 … … 433 438 #endif 434 439 if(!tmp) 440 { 441 fprintf(stderr, "Error: could not load image %s.\n", argv[1]); 442 #if defined _WIN32 443 fprintf(stderr, "Maybe try with an 8-bpp or 24-bpp BMP file?\n"); 444 #endif 435 445 return 2; 446 } 436 447 437 448 f = fopen(ORICFILE ".TAP", "w"); 438 449 if(!f) 450 { 451 fprintf(stderr, "Error: could not open %s.TAP for writing.\n", 452 ORICFILE); 439 453 return 3; 454 } 440 455 fwrite("\x16\x16\x16\x16\x24", 1, 5, f); 441 456 fwrite("\x00\xff\x80\x00\xbf\x3f\xa0\x00", 1, 8, f);
Note: See TracChangeset
for help on using the changeset viewer.