Previous 15994 Revisions Next

r8080 Wednesday 19th May, 2010 at 00:39:20 UTC by Firewave
Removed unnecessary \n from fatalerror() and fatalerror_exitcode() calls
[src/mess]mess.c
[src/mess/devices]aescart.c cartslot.c ti99cart.c
[src/mess/drivers]apricot.c cdi.c craft.c einstein.c
[src/mess/formats]apridisk.c d64_dsk.c g64_dsk.c
[src/mess/machine]gdrom.c i82439tx.c mpc105.c ncr5380.c nes.c pc8801.c scsibus.c svi318.c wd17xx.c
[src/mess/video]gba.c gbam345.c mac.c pc_aga.c pc_cga.c pc_ega.c pc_mda.c pc_vga.c

src/mess/devices/ti99cart.c
r8079r8080
20262026         if (me == MCERR_NONE)
20272027            result = pcb->assemble(image);
20282028         else
2029            fatalerror("Error loading multicart: %s\n", multicart_error_text(me));
2029            fatalerror("Error loading multicart: %s", multicart_error_text(me));
20302030
20312031         /* This is for legacy support. If we have no multicart left
20322032            but there are still legacy dumps, we switch to legacy mode. */
r8079r8080
20352035      }
20362036      else
20372037      {
2038         fatalerror("Error loading multicart: no pcb found.\n");
2038         fatalerror("Error loading multicart: no pcb found.");
20392039      }
20402040   }
20412041   return result;
r8079r8080
20792079         cartslots->multi_slots--;
20802080      }
20812081//      else
2082//          fatalerror("Lost pointer to multicart in cartridge. Report bug.\n");
2082//          fatalerror("Lost pointer to multicart in cartridge. Report bug.");
20832083   }
20842084   else
20852085   {
src/mess/devices/cartslot.c
r8079r8080
348348      else
349349      {
350350         if (me != MCERR_NOT_MULTICART)
351            fatalerror("multicart error: %s\n", multicart_error_text(me));
351            fatalerror("multicart error: %s", multicart_error_text(me));
352352         if (image_pcb(device) != NULL)
353353         {
354354            /* read from hash file */
r8079r8080
368368
369369      /* check for unknown PCB type */
370370      if ((mc != NULL) && (pcb_type == NULL))
371         fatalerror("Unknown PCB type \"%s\"\n", astring_c(&pcb_name));
371         fatalerror("Unknown PCB type \"%s\"", astring_c(&pcb_name));
372372   }
373373   else
374374   {
src/mess/devices/aescart.c
r8079r8080
415415   multicart_open_error me;
416416
417417   if (pcbdev == NULL)
418      fatalerror("Error loading multicart: no pcb found.\n");
418      fatalerror("Error loading multicart: no pcb found.");
419419
420420   /* If we are here, we have a multicart. */
421421   pcb = (aes_pcb_t *)pcbdev->token;
r8079r8080
432432    for a quick access by the memory handlers. Every PCB defines an
433433    own assembly method. */
434434    if (me != MCERR_NONE)
435      fatalerror("Error loading multicart: %s\n", multicart_error_text(me));
435      fatalerror("Error loading multicart: %s", multicart_error_text(me));
436436
437437   return pcb->assemble(pcbdev->machine, image);
438438}
r8079r8080
472472         cart->mc = NULL;
473473      }
474474//      else
475//          fatalerror("Lost pointer to multicart in cartridge. Report bug.\n");
475//          fatalerror("Lost pointer to multicart in cartridge. Report bug.");
476476   }
477477}
478478
src/mess/mess.c
r8079r8080
9393               /* unload all images */
9494               image_unload_all(machine);
9595
96               fatalerror_exitcode(machine, MAMERR_DEVICE, "Device %s load (%s) failed: %s\n",
96               fatalerror_exitcode(machine, MAMERR_DEVICE, "Device %s load (%s) failed: %s",
9797                  info.name,
9898                  image_basename,
9999                  image_err);
r8079r8080
104104            /* no image... must this device be loaded? */
105105            if (info.must_be_loaded)
106106            {
107               fatalerror_exitcode(machine, MAMERR_DEVICE, "Driver requires that device \"%s\" must have an image to load\n", info.instance_name);
107               fatalerror_exitcode(machine, MAMERR_DEVICE, "Driver requires that device \"%s\" must have an image to load", info.instance_name);
108108            }
109109         }
110110
src/mess/video/mac.c
r8079r8080
235235         break;
236236
237237      default:
238         fatalerror("cb264: unknown video mode %d\n", cb264_mode);
238         fatalerror("cb264: unknown video mode %d", cb264_mode);
239239         break;
240240
241241   }
src/mess/video/pc_vga.c
r8079r8080
709709            break;
710710
711711         default:
712            fatalerror("VGA: Bus width %d not supported\n", buswidth);
712            fatalerror("VGA: Bus width %d not supported", buswidth);
713713            break;
714714      }
715715   }
src/mess/video/gbam345.c
r8079r8080
1515
1616   if(bpp == 4)
1717   {
18      fatalerror( "Screen mode 5 is not fully supported yet, contact MESSdev!\n" );
18      fatalerror( "Screen mode 5 is not fully supported yet, contact MESSdev!" );
1919   }
2020
2121   draw_roz_bitmap_scanline(state, line2, y, DISPCNT_BG2_EN, state->BG2CNT, state->BG2X, state->BG2Y, state->BG2PA, state->BG2PB, state->BG2PC, state->BG2PD, &state->gfxBG2X, &state->gfxBG2Y, state->gfxBG2Changed, bpp);
r8079r8080
8686
8787   if(bpp == 4)
8888   {
89      fatalerror( "Screen mode 5 is not fully supported yet, contact MESSdev!\n" );
89      fatalerror( "Screen mode 5 is not fully supported yet, contact MESSdev!" );
9090   }
9191
9292   draw_roz_bitmap_scanline(state, line2, y, DISPCNT_BG2_EN, state->BG2CNT, state->BG2X, state->BG2Y, state->BG2PA, state->BG2PB, state->BG2PC, state->BG2PD, &state->gfxBG2X, &state->gfxBG2Y, state->gfxBG2Changed, bpp);
r8079r8080
210210
211211   if(bpp == 4)
212212   {
213      fatalerror( "Screen mode 5 is not fully supported yet, contact MESSdev!\n" );
213      fatalerror( "Screen mode 5 is not fully supported yet, contact MESSdev!" );
214214   }
215215
216216   if(state->DISPCNT & DISPCNT_WIN0_EN)
src/mess/video/pc_mda.c
r8079r8080
114114         break;
115115
116116      default:
117         fatalerror("MDA: Bus width %d not supported\n", buswidth);
117         fatalerror("MDA: Bus width %d not supported", buswidth);
118118         break;
119119   }
120120
r8079r8080
466466      break;
467467
468468   default:
469      fatalerror("Hercules: Bus width %d not supported\n", buswidth);
469      fatalerror("Hercules: Bus width %d not supported", buswidth);
470470      break;
471471   }
472472
src/mess/video/pc_aga.c
r8079r8080
700700         break;
701701
702702      default:
703         fatalerror("AGA:  Bus width %d not supported\n", buswidth);
703         fatalerror("AGA:  Bus width %d not supported", buswidth);
704704         break;
705705   }
706706
r8079r8080
733733         break;
734734
735735      default:
736         fatalerror("AGA:  Bus width %d not supported\n", buswidth);
736         fatalerror("AGA:  Bus width %d not supported", buswidth);
737737         break;
738738   }
739739
src/mess/video/pc_cga.c
r8079r8080
490490         break;
491491
492492      default:
493         fatalerror("CGA: Bus width %d not supported\n", buswidth);
493         fatalerror("CGA: Bus width %d not supported", buswidth);
494494         break;
495495   }
496496
r8079r8080
13021302               break;
13031303
13041304            default:
1305               fatalerror("CGA: Bus width %d not supported\n", buswidth);
1305               fatalerror("CGA: Bus width %d not supported", buswidth);
13061306               break;
13071307         }
13081308      } else {
r8079r8080
13221322               break;
13231323
13241324            default:
1325               fatalerror("CGA: Bus width %d not supported\n", buswidth);
1325               fatalerror("CGA: Bus width %d not supported", buswidth);
13261326               break;
13271327         }
13281328
src/mess/video/pc_ega.c
r8079r8080
655655         break;
656656
657657      default:
658         fatalerror("EGA: Bus width %d not supported\n", buswidth);
658         fatalerror("EGA: Bus width %d not supported", buswidth);
659659         break;
660660   }
661661
src/mess/video/gba.c
r8079r8080
9898
9999static void invalid_gba_draw_function(running_machine *machine, gba_state *state, int y, UINT32* line0, UINT32* line1, UINT32* line2, UINT32* line3, UINT32* lineOBJ, UINT32* lineOBJWin, UINT32* lineMix, int aux)
100100{
101   fatalerror( "Invalid screen mode (6 or 7)!\n" );
101   fatalerror( "Invalid screen mode (6 or 7)!" );
102102}
103103
104104static void draw_roz_bitmap_scanline(gba_state *state, UINT32 *scanline, int ypos, UINT32 enablemask, UINT32 ctrl, INT32 X, INT32 Y, INT32 PA, INT32 PB, INT32 PC, INT32 PD, INT32 *currentx, INT32 *currenty, int changed, int depth)
src/mess/machine/gdrom.c
r8079r8080
135135      case 0x30: // CD_READ
136136         if (command[1] & 1)
137137         {
138            fatalerror("GDROM: MSF mode used for CD_READ, unsupported\n");
138            fatalerror("GDROM: MSF mode used for CD_READ, unsupported");
139139            return 0;
140140         }
141141         else
r8079r8080
148148
149149            if (our_this->read_type != 2)   // mode 1
150150            {
151               fatalerror("GDROM: Unhandled read_type %d\n", our_this->read_type);
151               fatalerror("GDROM: Unhandled read_type %d", our_this->read_type);
152152            }
153153
154154            if (our_this->data_select != 2)   // just sector data
155155            {
156               fatalerror("GDROM: Unhandled data_select %d\n", our_this->data_select);
156               fatalerror("GDROM: Unhandled data_select %d", our_this->data_select);
157157            }
158158
159159            printf("GDROM: CD_READ at LBA %x for %d blocks (%d bytes, read type %d, data select %d)\n", our_this->lba, our_this->blocks, our_this->blocks * our_this->bytes_per_sector, our_this->read_type, our_this->data_select);
src/mess/machine/ncr5380.c
r8079r8080
8484   if (group == 1 || group == 2) return 10;
8585   if (group == 5) return 12;
8686
87   fatalerror("NCR5380: Unknown SCSI command group %d\n", group);
87   fatalerror("NCR5380: Unknown SCSI command group %d", group);
8888
8989   return 6;
9090}
src/mess/machine/scsibus.c
r8079r8080
626626   if (group == 1 || group == 2) return 10;
627627   if (group == 5) return 12;
628628
629   fatalerror("scsibus: Unknown SCSI command group %d\n", group);
629   fatalerror("scsibus: Unknown SCSI command group %d", group);
630630
631631   return 6;
632632}
src/mess/machine/wd17xx.c
r8079r8080
12531253
12541254   /* not supported on FD1771, FD1792, FD1794, FD1762 and FD1764 */
12551255   if (device->type == WD1771)
1256      fatalerror("wd17xx_dden_w: double density input not supported on this model!\n");
1256      fatalerror("wd17xx_dden_w: double density input not supported on this model!");
12571257   else if (w->in_dden_func.read != NULL)
12581258      logerror("wd17xx_dden_w: write has no effect because a read handler is already defined!\n");
12591259   else
src/mess/machine/svi318.c
r8079r8080
426426   }
427427   else
428428   {
429      fatalerror("Unknown screen '%s'\n", screen->tag());
429      fatalerror("Unknown screen '%s'", screen->tag());
430430   }
431431   return 0;
432432}
src/mess/machine/mpc105.c
r8079r8080
204204         break;
205205
206206      case 0xA8:   /* processor interface configuration 1 */
207         //fatalerror("mpc105_pci_write(): Unexpected PCI write 0x%02X <-- 0x%08X\n", offset, data);
207         //fatalerror("mpc105_pci_write(): Unexpected PCI write 0x%02X <-- 0x%08X", offset, data);
208208         break;
209209   }
210210}
src/mess/machine/nes.c
r8079r8080
697697            // unfortunately, the MAPR chunk is not always the first chunk (see Super 24-in-1)
698698            /* Preliminary checks: the first chunk MUST be MAPR! */
699699            if (read_length == 0x20 && ((magic2[0] != 'M') || (magic2[1] != 'A') || (magic2[2] != 'P') || (magic2[3] != 'R')))
700               fatalerror("First chunk of data in UNIF should be [MAPR]. Check if your image has been corrupted\n");
700               fatalerror("First chunk of data in UNIF should be [MAPR]. Check if your image has been corrupted");
701701
702702            /* Preliminary checks: multiple MAPR chunks are FORBIDDEN! */
703703            if (read_length > 0x20 && ((magic2[0] == 'M') && (magic2[1] == 'A') && (magic2[2] == 'P') && (magic2[3] == 'R')))
704               fatalerror("UNIF should not have multiple [MAPR] chunks. Check if your image has been corrupted\n");
704               fatalerror("UNIF should not have multiple [MAPR] chunks. Check if your image has been corrupted");
705705#endif
706706
707707            /* we first run through the whole image to find a [MAPR] chunk */
r8079r8080
723723
724724                  if (unif_board == NULL)
725725                  {
726                     fatalerror("Unsupported UNIF board %s.\n", unif_mapr);
726                     fatalerror("Unsupported UNIF board %s.", unif_mapr);
727727                     // logerror("Unsupported UNIF board %s.\n", unif_mapr);
728728                  }
729729
r8079r8080
877877                  /* Validation */
878878                  prg_left -= chunk_length;
879879                  if (prg_left < 0)
880                     fatalerror("PRG chunks larger than expected by board %s!\n", unif_mapr);
880                     fatalerror("PRG chunks larger than expected by board %s!", unif_mapr);
881881
882882                  /* Read in the program chunks */
883883                  if (state->prg_chunks == 1)
r8079r8080
902902                  /* validation */
903903                  chr_left -= chunk_length;
904904                  if (chr_left < 0)
905                     fatalerror("CHR chunks larger than expected by board %s!\n", unif_mapr);
905                     fatalerror("CHR chunks larger than expected by board %s!", unif_mapr);
906906
907907                  /* Read in the vrom chunks */
908908                  image_fread(image, state->vrom + chr_start, chunk_length);
r8079r8080
919919         } while (size > read_length);
920920
921921         if (!mapr_chunk_found )
922            fatalerror("UNIF should have a [MAPR] chunk to work. Check if your image has been corrupted\n");
922            fatalerror("UNIF should have a [MAPR] chunk to work. Check if your image has been corrupted");
923923
924924         logerror("UNIF support is only very preliminary.\n");
925925      }
r8079r8080
946946
947947      // validate the xml fields
948948      if (!prg_size)
949         fatalerror("No PRG entry for this software! Please check if the xml list got corrupted\n");
949         fatalerror("No PRG entry for this software! Please check if the xml list got corrupted");
950950      if (prg_size < 0x4000)
951         fatalerror("PRG entry is too small! Please check if the xml list got corrupted\n");
951         fatalerror("PRG entry is too small! Please check if the xml list got corrupted");
952952
953953      if (chr_size)
954954         memory_region_alloc(image->machine, "gfx1", chr_size, 0);
src/mess/machine/i82439tx.c
r8079r8080
117117         break;
118118
119119      default:
120         fatalerror("i82439tx_pci_read(): Unexpected PCI read 0x%02X\n", offset);
120         fatalerror("i82439tx_pci_read(): Unexpected PCI read 0x%02X", offset);
121121         break;
122122   }
123123   return result;
r8079r8080
200200         break;
201201
202202      default:
203         fatalerror("i82439tx_pci_write(): Unexpected PCI write 0x%02X <-- 0x%08X\n", offset, data);
203         fatalerror("i82439tx_pci_write(): Unexpected PCI write 0x%02X <-- 0x%08X", offset, data);
204204         break;
205205   }
206206}
src/mess/machine/pc8801.c
r8079r8080
639639    logerror("N88-BASIC(V2)");
640640    break;
641641  default:
642    fatalerror("Illegal basic mode=(%d,%d,%d)\n",is_Nbasic,is_V2mode,pc88sr_is_highspeed);
642    fatalerror("Illegal basic mode=(%d,%d,%d)",is_Nbasic,is_V2mode,pc88sr_is_highspeed);
643643    break;
644644  }
645645  if(is_8MHz) {
src/mess/formats/apridisk.c
r8079r8080
189189
190190            /* not sure if this is possible */
191191            if (length != 512)
192               fatalerror("Compression unsupported\n");
192               fatalerror("Compression unsupported");
193193
194194            memset(&tag->sectors[cur_sector].data, value, length);
195195         }
src/mess/formats/d64_dsk.c
r8079r8080
420420      gcr_track_size = sectors_per_track * SECTOR_SIZE_GCR;
421421      gcr_track_data = (UINT8 *)alloca(gcr_track_size);
422422
423      if (buflen < gcr_track_size) fatalerror("D64 track buffer too small: %u!\n", (UINT32)buflen);
423      if (buflen < gcr_track_size) fatalerror("D64 track buffer too small: %u!", (UINT32)buflen);
424424
425425      /* read D64 track data */
426426      floppy_image_read(floppy, d64_track_data, track_offset, d64_track_size);
src/mess/formats/g64_dsk.c
r8079r8080
143143
144144   if (!head && track_offset)
145145   {
146      if (buflen < tag->track_size) fatalerror("G64 track buffer too small: %u!\n", (UINT32)buflen);
146      if (buflen < tag->track_size) fatalerror("G64 track buffer too small: %u!", (UINT32)buflen);
147147
148148      /* read track */
149149      floppy_image_read(floppy, buffer, track_offset + 2, tag->track_size);
src/mess/drivers/einstein.c
r8079r8080
634634   else if (screen == einstein->crtc_screen)
635635      mc6845_update(einstein->mc6845, bitmap, cliprect);
636636   else
637      fatalerror("Unknown screen '%s'\n", screen->tag());
637      fatalerror("Unknown screen '%s'", screen->tag());
638638
639639   return 0;
640640}
src/mess/drivers/cdi.c
r8079r8080
593593         timer_adjust_oneshot(scc68070->timers.timer0_timer, period, 0);
594594         break;
595595      default:
596         fatalerror( "Unsupported timer channel to scc68070_set_timer_callback!\n" );
596         fatalerror( "Unsupported timer channel to scc68070_set_timer_callback!" );
597597   }
598598}
599599
r8079r8080
16271627         break;
16281628
16291629      default:
1630         fatalerror("play_xa: unhandled xa mode %08x\n",hdr[2]);
1630         fatalerror("play_xa: unhandled xa mode %08x",hdr[2]);
16311631         return;
16321632   }
16331633
src/mess/drivers/apricot.c
r8079r8080
205205   else
206206   {
207207      /* graphics mode */
208      fatalerror("Graphics mode not implemented!\n");
208      fatalerror("Graphics mode not implemented!");
209209   }
210210}
211211
src/mess/drivers/craft.c
r8079r8080
9595
9696        default:
9797           frequency = 0;
98            fatalerror( "&state->tccr1b & 0x07 returned a value not in the range of 0 to 7.\n" );
98            fatalerror( "&state->tccr1b & 0x07 returned a value not in the range of 0 to 7." );
9999            break;
100100    }
101101

Previous 15994 Revisions Next


© 1998-2018 The MESS Team