Previous 199869 Revisions Next

r17724 Saturday 8th September, 2012 at 12:52:35 UTC by Oliver Stöneberg
added missing \n to even more fatalerror() calls (no whatsnew)
[src/emu]memory.c save.c schedule.c sound.c uimain.c video.c
[src/emu/sound]disc_flt.c disc_inp.c disc_mth.c disc_wav.c discrete.c sn76496.c t6w28.c ymf271.c
[src/emu/video]h63484.c msm6255.c pc_cga.c pc_vga.c resnet.c voodoo.c

trunk/src/emu/video/h63484.c
r17723r17724
875875            m_dn = m_pr[0]; // number of param words
876876
877877            //if(m_dn > 0x10 || m_dn == 0)
878            //  fatalerror("stop!");
878            //  fatalerror("stop!\n");
879879         }
880880
881881         if(m_param_ptr == (1 + m_dn))
r17723r17724
956956
957957      default:
958958         printf("%04x\n",m_cr);
959         fatalerror("stop!");
959         fatalerror("stop!\n");
960960         break;
961961   }
962962}
trunk/src/emu/video/resnet.c
r17723r17724
491491         /* Fall through */
492492         break;
493493      default:
494         fatalerror("compute_res_net: Unknown amplifier type");
494         fatalerror("compute_res_net: Unknown amplifier type\n");
495495   }
496496
497497   switch (di->options & RES_NET_VCC_MASK)
r17723r17724
503503         /* Fall through */
504504         break;
505505      default:
506         fatalerror("compute_res_net: Unknown vcc type");
506         fatalerror("compute_res_net: Unknown vcc type\n");
507507   }
508508
509509   switch (di->options & RES_NET_VBIAS_MASK)
r17723r17724
521521         /* Fall through */
522522         break;
523523      default:
524         fatalerror("compute_res_net: Unknown vcc type");
524         fatalerror("compute_res_net: Unknown vcc type\n");
525525   }
526526
527527   switch (di->options & RES_NET_VIN_MASK)
r17723r17724
548548         /* Fall through */
549549         break;
550550      default:
551         fatalerror("compute_res_net: Unknown vin type");
551         fatalerror("compute_res_net: Unknown vin type\n");
552552   }
553553
554554   /* Per channel options */
r17723r17724
574574         /* Fall through */
575575         break;
576576      default:
577         fatalerror("compute_res_net: Unknown amplifier type");
577         fatalerror("compute_res_net: Unknown amplifier type\n");
578578   }
579579
580580   switch (di->rgb[channel].options & RES_NET_VBIAS_MASK)
r17723r17724
592592         /* Fall through */
593593         break;
594594      default:
595         fatalerror("compute_res_net: Unknown vcc type");
595         fatalerror("compute_res_net: Unknown vcc type\n");
596596   }
597597
598598   /* Input impedances */
trunk/src/emu/video/voodoo.c
r17723r17724
14481448
14491449   /* check for separate RGBA filtering */
14501450   if (TEXDETAIL_SEPARATE_RGBA_FILTER(t->reg[tDetail].u))
1451      fatalerror("Separate RGBA filters!");
1451      fatalerror("Separate RGBA filters!\n");
14521452}
14531453
14541454
r17723r17724
16821682
16831683            case 2:      /* RET */
16841684               if (LOG_CMDFIFO) logerror("  RET $%06X\n", target);
1685               fatalerror("RET in CMDFIFO!");
1685               fatalerror("RET in CMDFIFO!\n");
16861686               break;
16871687
16881688            case 3:      /* JMP LOCAL FRAME BUFFER */
r17723r17724
16921692
16931693            case 4:      /* JMP AGP */
16941694               if (LOG_CMDFIFO) logerror("  JMP AGP $%06X\n", target);
1695               fatalerror("JMP AGP in CMDFIFO!");
1695               fatalerror("JMP AGP in CMDFIFO!\n");
16961696               src = &fifobase[target / 4];
16971697               break;
16981698
16991699            default:
17001700               mame_printf_debug("INVALID JUMP COMMAND!\n");
1701               fatalerror("  INVALID JUMP COMMAND");
1701               fatalerror("  INVALID JUMP COMMAND\n");
17021702               break;
17031703         }
17041704         break;
r17723r17724
21492149static void stall_cpu(voodoo_state *v, int state, attotime current_time)
21502150{
21512151   /* sanity check */
2152   if (!v->pci.op_pending) fatalerror("FIFOs not empty, no op pending!");
2152   if (!v->pci.op_pending) fatalerror("FIFOs not empty, no op pending!\n");
21532153
21542154   /* set the state and update statistics */
21552155   v->pci.stall_state = state;
r17723r17724
25072507
25082508      case userIntrCMD:
25092509         poly_wait(v->poly, v->regnames[regnum]);
2510         //fatalerror("userIntrCMD");
2510         //fatalerror("userIntrCMD\n");
25112511
25122512         v->reg[intrCtrl].u |= 0x1800;
25132513         v->reg[intrCtrl].u &= ~0x80000000;
r17723r17724
27142714
27152715      case cmdFifoBump:
27162716         if (v->type == TYPE_VOODOO_2 && (chips & 1))
2717            fatalerror("cmdFifoBump");
2717            fatalerror("cmdFifoBump\n");
27182718         break;
27192719
27202720      case cmdFifoRdPtr:
r17723r17724
27642764            else
27652765               rowpixels = (data & 0x3fff) >> 1;
27662766            if (v->fbi.rowpixels != rowpixels)
2767               fatalerror("aux buffer stride differs from color buffer stride");
2767               fatalerror("aux buffer stride differs from color buffer stride\n");
27682768         }
27692769         break;
27702770
r17723r17724
32943294   t = &v->tmu[tmunum];
32953295
32963296   if (TEXLOD_TDIRECT_WRITE(t->reg[tLOD].u))
3297      fatalerror("Texture direct write!");
3297      fatalerror("Texture direct write!\n");
32983298
32993299   /* wait for any outstanding work to finish */
33003300   poly_wait(v->poly, "Texture write");
r17723r17724
34133413      return;
34143414   in_flush = TRUE;
34153415
3416   if (!v->pci.op_pending) fatalerror("flush_fifos called with no pending operation");
3416   if (!v->pci.op_pending) fatalerror("flush_fifos called with no pending operation\n");
34173417
34183418   if (LOG_FIFO_VERBOSE) logerror("VOODOO.%d.FIFO:flush_fifos start -- pending=%d.%08X%08X cur=%d.%08X%08X\n", v->index,
34193419      v->pci.op_end_time.seconds, (UINT32)(v->pci.op_end_time.attoseconds >> 32), (UINT32)v->pci.op_end_time.attoseconds,
r17723r17724
36533653      fifo_add(&v->pci.fifo, data);
36543654   }
36553655   else
3656      fatalerror("PCI FIFO full");
3656      fatalerror("PCI FIFO full\n");
36573657
36583658   /* handle flushing to the memory FIFO */
36593659   if (FBIINIT0_ENABLE_MEMORY_FIFO(v->reg[fbiInit0].u) &&
r17723r17724
45274527         break;
45284528
45294529      case cmdBump0:
4530         fatalerror("cmdBump0");
4530         fatalerror("cmdBump0\n");
45314531         break;
45324532
45334533      case cmdRdPtrL0:
r17723r17724
45644564         break;
45654565
45664566      case cmdBump1:
4567         fatalerror("cmdBump1");
4567         fatalerror("cmdBump1\n");
45684568         break;
45694569
45704570      case cmdRdPtrL1:
r17723r17724
48954895         break;
48964896
48974897      default:
4898         fatalerror("Unsupported voodoo card in voodoo_start!");
4898         fatalerror("Unsupported voodoo card in voodoo_start!\n");
48994899         break;
49004900   }
49014901
trunk/src/emu/video/pc_cga.c
r17723r17724
354354         break;
355355
356356      default:
357         fatalerror("CGA: Bus width %d not supported", buswidth);
357         fatalerror("CGA: Bus width %d not supported\n", buswidth);
358358         break;
359359   }
360360   spaceio->install_legacy_readwrite_handler(0x3d0, 0x3df, FUNC(pc_cga8_r), FUNC(pc_cga8_w), mask );
r17723r17724
396396         break;
397397
398398      default:
399         fatalerror("CGA: Bus width %d not supported", buswidth);
399         fatalerror("CGA: Bus width %d not supported\n", buswidth);
400400         break;
401401   }
402402   spaceio->install_legacy_readwrite_handler(0x3d0, 0x3df, FUNC(pc_cga8_r), FUNC(pc_cga8_w), mask );
r17723r17724
12251225               break;
12261226
12271227            default:
1228               fatalerror("CGA: Bus width %d not supported", buswidth);
1228               fatalerror("CGA: Bus width %d not supported\n", buswidth);
12291229               break;
12301230         }
12311231         space_prg->install_legacy_readwrite_handler(0xb8000, 0xb9fff, FUNC(char_ram_r),FUNC(char_ram_w), mask );
trunk/src/emu/video/msm6255.c
r17723r17724
116116   // or initialize to defaults if none provided
117117   else
118118   {
119      fatalerror("Interface not specified!");
119      fatalerror("Interface not specified!\n");
120120   }
121121}
122122
trunk/src/emu/video/pc_vga.c
r17723r17724
19881988      vga.svga_intf = *svga_intf;
19891989
19901990      if (vga.svga_intf.seq_regcount < 0x05)
1991         fatalerror("Invalid SVGA sequencer register count");
1991         fatalerror("Invalid SVGA sequencer register count\n");
19921992      if (vga.svga_intf.crtc_regcount < 0x19)
1993         fatalerror("Invalid SVGA CRTC register count");
1993         fatalerror("Invalid SVGA CRTC register count\n");
19941994   }
19951995   else
19961996   {
r17723r17724
20352035         break;
20362036
20372037      default:
2038         fatalerror("VGA: Bus width %d not supported", buswidth);
2038         fatalerror("VGA: Bus width %d not supported\n", buswidth);
20392039         break;
20402040   }
20412041   io_space->install_legacy_readwrite_handler(port_offset + 0x3b0, port_offset + 0x3bf, FUNC(vga_port_03b0_r), FUNC(vga_port_03b0_w), mask);
r17723r17724
24602460         break;
24612461
24622462      default:
2463         fatalerror("VGA: Bus width %d not supported", buswidth);
2463         fatalerror("VGA: Bus width %d not supported\n", buswidth);
24642464         break;
24652465   }
24662466   io_space->install_legacy_readwrite_handler(port_offset + 0x3b0, port_offset + 0x3bf, FUNC(vga_port_03b0_r), FUNC(vga_port_03b0_w), mask);
r17723r17724
27232723         case 0x03: svga.rgb15_en = 1; break;
27242724         case 0x05: svga.rgb16_en = 1; break;
27252725         case 0x0d: svga.rgb32_en = 1; break;
2726         default: fatalerror("TODO: s3 video mode not implemented %02x",((s3.ext_misc_ctrl_2) >> 4)); break;
2726         default: fatalerror("TODO: s3 video mode not implemented %02x\n",((s3.ext_misc_ctrl_2) >> 4)); break;
27272727      }
27282728   }
27292729   else
r17723r17724
29372937            svga.bank_w = data & 0xf;
29382938            svga.bank_r = svga.bank_w;
29392939            if(data & 0x60)
2940               fatalerror("TODO: s3 bank selects above 1M");
2940               fatalerror("TODO: s3 bank selects above 1M\n");
29412941            break;
29422942         default:
29432943            logerror("S3: 3D4 index %02x write %02x\n",index,data);
r17723r17724
44814481         break;
44824482
44834483      default:
4484         fatalerror("VGA: Bus width %d not supported", buswidth);
4484         fatalerror("VGA: Bus width %d not supported\n", buswidth);
44854485         break;
44864486   }
44874487   io_space->install_legacy_readwrite_handler(port_offset + 0x3b0, port_offset + 0x3bf, FUNC(vga_port_gamtor_03b0_r), FUNC(vga_port_gamtor_03b0_w), mask);
trunk/src/emu/video.c
r17723r17724
11241124            end = snapstr.len();
11251125
11261126         if (end - pos < 3)
1127            fatalerror("Something very wrong is going on!!!");
1127            fatalerror("Something very wrong is going on!!!\n");
11281128
11291129         // copy the device name to an astring
11301130         astring snapdevname;
trunk/src/emu/sound/disc_inp.c
r17723r17724
7878   astring fulltag;
7979   m_port = m_device->machine().root_device().ioport(m_device->siblingtag(fulltag, (const char *)this->custom_data()).cstr());
8080   if (m_port == NULL)
81      fatalerror("DISCRETE_ADJUSTMENT - NODE_%d has invalid tag", this->index());
81      fatalerror("DISCRETE_ADJUSTMENT - NODE_%d has invalid tag\n", this->index());
8282
8383   m_lastpval = 0x7fffffff;
8484   m_pmin     = DSS_ADJUSTMENT__PMIN;
trunk/src/emu/sound/disc_mth.c
r17723r17724
16401640         default:
16411641            m_device->discrete_log("dst_transform_step - Invalid function type/variable passed: %s",(const char *)this->custom_data());
16421642            /* that is enough to fatalerror */
1643            fatalerror("dst_transform_step - Invalid function type/variable passed: %s", (const char *)this->custom_data());
1643            fatalerror("dst_transform_step - Invalid function type/variable passed: %s\n", (const char *)this->custom_data());
16441644            break;
16451645      }
16461646      p++;
trunk/src/emu/sound/sn76496.c
r17723r17724
401401   sn76496_state *chip = get_safe_token(device);
402402
403403   if (SN76496_init(device,chip,stereo) != 0)
404      fatalerror("Error creating SN76496 chip");
404      fatalerror("Error creating SN76496 chip\n");
405405   SN76496_set_gain(chip, 0);
406406
407407   chip->FeedbackMask = feedbackmask;
trunk/src/emu/sound/ymf271.c
r17723r17724
537537
538538   if (slot->waveform != 7)
539539   {
540      fatalerror("Waveform %d in update_pcm !!!", slot->waveform);
540      fatalerror("Waveform %d in update_pcm!!!\n", slot->waveform);
541541   }
542542
543543   for (i = 0; i < length; i++)
trunk/src/emu/sound/discrete.c
r17723r17724
412412         //discrete_base_node *node_ref = m_device->m_indexed_node[NODE_INDEX(inputnode)];
413413         discrete_base_node *node_ref = m_device->discrete_find_node(inputnode);
414414         if (!node_ref)
415            fatalerror("discrete_start - NODE_%02d referenced a non existent node NODE_%02d", index(), NODE_INDEX(inputnode));
415            fatalerror("discrete_start - NODE_%02d referenced a non existent node NODE_%02d\n", index(), NODE_INDEX(inputnode));
416416
417417         if ((NODE_CHILD_NODE_NUM(inputnode) >= node_ref->max_output()) /*&& (node_ref->module_type() != DST_CUSTOM)*/)
418            fatalerror("discrete_start - NODE_%02d referenced non existent output %d on node NODE_%02d", index(), NODE_CHILD_NODE_NUM(inputnode), NODE_INDEX(inputnode));
418            fatalerror("discrete_start - NODE_%02d referenced non existent output %d on node NODE_%02d\n", index(), NODE_CHILD_NODE_NUM(inputnode), NODE_INDEX(inputnode));
419419
420420         m_input[inputnum] = &(node_ref->m_output[NODE_CHILD_NODE_NUM(inputnode)]);   /* Link referenced node out to input */
421421         m_input_is_node |= 1 << inputnum;         /* Bit flag if input is node */
r17723r17724
505505         bool found = false;
506506         node_count++;
507507         if (intf[node_count].type == DSS_NULL)
508            fatalerror("discrete_build_list: DISCRETE_REPLACE at end of node_list");
508            fatalerror("discrete_build_list: DISCRETE_REPLACE at end of node_list\n");
509509
510510         for (int i=0; i < block_list.count(); i++)
511511         {
r17723r17724
522522         }
523523
524524         if (!found)
525            fatalerror("discrete_build_list: DISCRETE_REPLACE did not found node %d", NODE_INDEX(intf[node_count].node));
525            fatalerror("discrete_build_list: DISCRETE_REPLACE did not found node %d\n", NODE_INDEX(intf[node_count].node));
526526
527527      }
528528      else if (intf[node_count].type == DSO_DELETE)
r17723r17724
568568
569569      /* make sure we don't have too many nodes overall */
570570      if (node_count > DISCRETE_MAX_NODES)
571         fatalerror("discrete_start() - Upper limit of %d nodes exceeded, have you terminated the interface block?", DISCRETE_MAX_NODES);
571         fatalerror("discrete_start() - Upper limit of %d nodes exceeded, have you terminated the interface block?\n", DISCRETE_MAX_NODES);
572572
573573      /* make sure the node number is in range */
574574      if (block->node < NODE_START || block->node > NODE_END)
575         fatalerror("discrete_start() - Invalid node number on node %02d descriptor", block->node);
575         fatalerror("discrete_start() - Invalid node number on node %02d descriptor\n", block->node);
576576
577577      /* make sure the node type is valid */
578578      if (block->type > DSO_OUTPUT)
579         fatalerror("discrete_start() - Invalid function type on NODE_%02d", NODE_INDEX(block->node) );
579         fatalerror("discrete_start() - Invalid function type on NODE_%02d\n", NODE_INDEX(block->node) );
580580
581581      /* make sure this is a main node */
582582      if (NODE_CHILD_NODE_NUM(block->node) > 0)
583         fatalerror("discrete_start() - Child node number on NODE_%02d", NODE_INDEX(block->node) );
583         fatalerror("discrete_start() - Child node number on NODE_%02d\n", NODE_INDEX(block->node) );
584584
585585      node_count++;
586586   }
r17723r17724
724724               if (USE_DISCRETE_TASKS)
725725               {
726726                  if (task != NULL)
727                     fatalerror("init_nodes() - Nested DISCRETE_START_TASK.");
727                     fatalerror("init_nodes() - Nested DISCRETE_START_TASK.\n");
728728                  task = auto_alloc_clear(machine(), discrete_task(*this));
729729                  task->task_group = block->initial[0];
730730                  if (task->task_group < 0 || task->task_group >= DISCRETE_MAX_TASK_GROUPS)
731                     fatalerror("discrete_dso_task: illegal task_group %d", task->task_group);
731                     fatalerror("discrete_dso_task: illegal task_group %d\n", task->task_group);
732732                  //printf("task group %d\n", task->task_group);
733733                  task_list.add(task);
734734               }
r17723r17724
738738               if (USE_DISCRETE_TASKS)
739739               {
740740                  if (task == NULL)
741                     fatalerror("init_nodes() - NO DISCRETE_START_TASK.");
741                     fatalerror("init_nodes() - NO DISCRETE_START_TASK.\n");
742742               }
743743               break;
744744
745745            default:
746               fatalerror("init_nodes() - Failed, trying to create unknown special discrete node.");
746               fatalerror("init_nodes() - Failed, trying to create unknown special discrete node.\n");
747747         }
748748      }
749749
r17723r17724
751751      else
752752      {
753753         if (m_indexed_node[NODE_INDEX(block->node)])
754            fatalerror("init_nodes() - Duplicate entries for NODE_%02d", NODE_INDEX(block->node));
754            fatalerror("init_nodes() - Duplicate entries for NODE_%02d\n", NODE_INDEX(block->node));
755755         m_indexed_node[NODE_INDEX(block->node)] = node;
756756      }
757757
r17723r17724
765765      {
766766         /* do we belong to a task? */
767767         if (task == NULL)
768            fatalerror("init_nodes() - found node outside of task: %s", node->module_name() );
768            fatalerror("init_nodes() - found node outside of task: %s\n", node->module_name() );
769769         else
770770            task->step_list.add(step);
771771      }
r17723r17724
983983
984984   /* if no outputs, give an error */
985985   if (m_output_list.count() == 0)
986      fatalerror("init_nodes() - Couldn't find an output node");
986      fatalerror("init_nodes() - Couldn't find an output node\n");
987987
988988   /* initialize the stream(s) */
989989   m_stream = machine().sound().stream_alloc(*this,m_input_stream_list.count(), m_output_list.count(), m_sample_rate);
trunk/src/emu/sound/disc_wav.c
r17723r17724
184184
185185
186186   if (!m_is_7492 && (DSS_COUNTER__MAX < DSS_COUNTER__MIN))
187      fatalerror("MAX < MIN in NODE_%02d", this->index());
187      fatalerror("MAX < MIN in NODE_%02d\n", this->index());
188188
189189   m_out_type    = m_clock_type & DISC_OUT_MASK;
190190   m_clock_type &= DISC_CLK_MASK;
r17723r17724
15901590         vG2 = this->tf(vG3);
15911591         break;
15921592      default:
1593         fatalerror("DISCRETE_INVERTER_OSC - Wrong type on NODE_%02d", this->index());
1593         fatalerror("DISCRETE_INVERTER_OSC - Wrong type on NODE_%02d\n", this->index());
15941594   }
15951595
15961596   clamped = 0;
r17723r17724
16561656         diff = diff - diff * exp(-this->sample_time()/(mc_c * rMix));
16571657         break;
16581658      default:
1659         fatalerror("DISCRETE_INVERTER_OSC - Wrong type on NODE_%02d", this->index());
1659         fatalerror("DISCRETE_INVERTER_OSC - Wrong type on NODE_%02d\n", this->index());
16601660   }
16611661
16621662   mc_v_cap   += diff;
trunk/src/emu/sound/disc_flt.c
r17723r17724
12861286          q = sqrt(info->c1 * info->c2 * info->r1 * info->r2) / (info->c2 * (info->r1 + info->r2));
12871287          break;
12881288      default:
1289         fatalerror("Unknown sallen key filter type");
1289         fatalerror("Unknown sallen key filter type\n");
12901290   }
12911291
12921292   calculate_filter2_coefficients(this, freq, 1.0 / q, DISC_FILTER_LOWPASS, m_fc);
trunk/src/emu/sound/t6w28.c
r17723r17724
347347   t6w28_state *chip = get_safe_token(device);
348348
349349   if (t6w28_init(device,chip) != 0)
350      fatalerror("Error creating t6w28 chip");
350      fatalerror("Error creating t6w28 chip\n");
351351   t6w28_set_gain(chip, 0);
352352
353353   /* values from sn76489a */
trunk/src/emu/uimain.c
r17723r17724
321321         break;
322322
323323      default:
324         fatalerror("ui_menu_main::handle - unknown reference");
324         fatalerror("ui_menu_main::handle - unknown reference\n");
325325      }
326326   }
327327}
trunk/src/emu/schedule.c
r17723r17724
764764      {
765765         device_t *device = machine().device(machine().config().m_perfect_cpu_quantum);
766766         if (device == NULL)
767            fatalerror("Device '%s' specified for perfect interleave is not present!", machine().config().m_perfect_cpu_quantum.cstr());
767            fatalerror("Device '%s' specified for perfect interleave is not present!\n", machine().config().m_perfect_cpu_quantum.cstr());
768768
769769         device_execute_interface *exec;
770770         if (!device->interface(exec))
771            fatalerror("Device '%s' specified for perfect interleave is not an executing device!", machine().config().m_perfect_cpu_quantum.cstr());
771            fatalerror("Device '%s' specified for perfect interleave is not an executing device!\n", machine().config().m_perfect_cpu_quantum.cstr());
772772
773773         min_quantum = min(attotime(0, exec->minimum_quantum()), min_quantum);
774774      }
trunk/src/emu/memory.c
r17723r17724
18631863         // find the region
18641864         memory_region *region = machine().root_device().memregion(fulltag);
18651865         if (region == NULL)
1866            fatalerror("Error: device '%s' %s space memory map entry %X-%X references non-existant region \"%s\"", m_device.tag(), m_name, entry->m_addrstart, entry->m_addrend, entry->m_region);
1866            fatalerror("Error: device '%s' %s space memory map entry %X-%X references non-existant region \"%s\"\n", m_device.tag(), m_name, entry->m_addrstart, entry->m_addrend, entry->m_region);
18671867
18681868         // validate the region
18691869         if (entry->m_rgnoffs + (entry->m_byteend - entry->m_bytestart + 1) > region->bytes())
1870            fatalerror("Error: device '%s' %s space memory map entry %X-%X extends beyond region \"%s\" size (%X)", m_device.tag(), m_name, entry->m_addrstart, entry->m_addrend, entry->m_region, region->bytes());
1870            fatalerror("Error: device '%s' %s space memory map entry %X-%X extends beyond region \"%s\" size (%X)\n", m_device.tag(), m_name, entry->m_addrstart, entry->m_addrend, entry->m_region, region->bytes());
18711871      }
18721872
18731873      // convert any region-relative entries to their memory pointers
r17723r17724
24372437      if (bank.base() == NULL && manager().m_initialized)
24382438      {
24392439         if (machine().phase() >= MACHINE_PHASE_RESET)
2440            fatalerror("Attempted to call install_ram_generic() after initialization time without a baseptr!");
2440            fatalerror("Attempted to call install_ram_generic() after initialization time without a baseptr!\n");
24412441         memory_block &block = manager().m_blocklist.append(*global_alloc(memory_block(*this, address_to_byte(addrstart), address_to_byte_end(addrend))));
24422442         bank.set_base(block.data());
24432443      }
r17723r17724
24662466      if (bank.base() == NULL && manager().m_initialized)
24672467      {
24682468         if (machine().phase() >= MACHINE_PHASE_RESET)
2469            fatalerror("Attempted to call install_ram_generic() after initialization time without a baseptr!");
2469            fatalerror("Attempted to call install_ram_generic() after initialization time without a baseptr!\n");
24702470         memory_block &block = manager().m_blocklist.append(*global_alloc(memory_block(*this, address_to_byte(addrstart), address_to_byte_end(addrend))));
24712471         bank.set_base(block.data());
24722472      }
r17723r17724
35843584
35853585      // merge any subtables we can
35863586      if (!subtable_merge())
3587         fatalerror("Ran out of subtables!");
3587         fatalerror("Ran out of subtables!\n");
35883588   }
35893589}
35903590
r17723r17724
36003600
36013601   // sanity check
36023602   if (m_subtable[subindex].m_usecount <= 0)
3603      fatalerror("Called subtable_realloc on a table with a usecount of 0");
3603      fatalerror("Called subtable_realloc on a table with a usecount of 0\n");
36043604
36053605   // increment the usecount
36063606   m_subtable[subindex].m_usecount++;
r17723r17724
36773677
36783678   // sanity check
36793679   if (m_subtable[subindex].m_usecount <= 0)
3680      fatalerror("Called subtable_release on a table with a usecount of 0");
3680      fatalerror("Called subtable_release on a table with a usecount of 0\n");
36813681
36823682   // decrement the usecount and clear the checksum if we're at 0
36833683   // also unref the subhandlers
trunk/src/emu/sound.c
r17723r17724
250250
251251   // make sure it's a valid input
252252   if (index >= m_input.count())
253      fatalerror("Fatal error: stream_set_input attempted to configure non-existant input %d (%d max)", index, m_input.count());
253      fatalerror("Fatal error: stream_set_input attempted to configure non-existant input %d (%d max)\n", index, m_input.count());
254254
255255   // make sure it's a valid output
256256   if (input_stream != NULL && output_index >= input_stream->m_output.count())
257      fatalerror("Fatal error: stream_set_input attempted to use a non-existant output %d (%d max)", output_index, m_output.count());
257      fatalerror("Fatal error: stream_set_input attempted to use a non-existant output %d (%d max)\n", output_index, m_output.count());
258258
259259   // if this input is already wired, update the dependent info
260260   stream_input &input = m_input[index];
trunk/src/emu/save.c
r17723r17724
141141{
142142   // check for invalid timing
143143   if (!m_reg_allowed)
144      fatalerror("Attempt to register callback function after state registration is closed!");
144      fatalerror("Attempt to register callback function after state registration is closed!\n");
145145
146146   // scan for duplicates and push through to the end
147147   for (state_callback *cb = m_presave_list.first(); cb != NULL; cb = cb->next())
148148      if (cb->m_func == func)
149         fatalerror("Duplicate save state function (%s/%s)", cb->m_func.name(), func.name());
149         fatalerror("Duplicate save state function (%s/%s)\n", cb->m_func.name(), func.name());
150150
151151   // allocate a new entry
152152   m_presave_list.append(*auto_alloc(machine(), state_callback(func)));
r17723r17724
162162{
163163   // check for invalid timing
164164   if (!m_reg_allowed)
165      fatalerror("Attempt to register callback function after state registration is closed!");
165      fatalerror("Attempt to register callback function after state registration is closed!\n");
166166
167167   // scan for duplicates and push through to the end
168168   for (state_callback *cb = m_postload_list.first(); cb != NULL; cb = cb->next())
169169      if (cb->m_func == func)
170         fatalerror("Duplicate save state function (%s/%s)", cb->m_func.name(), func.name());
170         fatalerror("Duplicate save state function (%s/%s)\n", cb->m_func.name(), func.name());
171171
172172   // allocate a new entry
173173   m_postload_list.append(*auto_alloc(machine(), state_callback(func)));
r17723r17724
211211
212212      // error if we are equal
213213      if (entry->m_name == totalname)
214         fatalerror("Duplicate save state registration entry (%s)", totalname.cstr());
214         fatalerror("Duplicate save state registration entry (%s)\n", totalname.cstr());
215215   }
216216
217217   // insert us into the list

Previous 199869 Revisions Next


© 1997-2024 The MAME Team