Previous 199869 Revisions Next

r17741 Sunday 9th September, 2012 at 07:09:46 UTC by Oliver Stöneberg
added missing \n to remaining fatalerror() calls (no whatsnew)
[src/mame/video]atarisy1.c decospr.c dkong.c gaelco3d.c galaxold.c gticlub.c konamiic.c konicdev.c leland.c model3.c n64.c namcos22.c segaic16.c snk.c
[src/mess/drivers]x68k.c

trunk/src/mame/video/gticlub.c
r17740r17741
105105         }
106106         default:
107107         {
108            fatalerror("K001006_r chip %d, unknown device %02X", chip, K001006_device_sel[chip]);
108            fatalerror("K001006_r chip %d, unknown device %02X\n", chip, K001006_device_sel[chip]);
109109         }
110110      }
111111   }
trunk/src/mame/video/dkong.c
r17740r17741
954954
955955         break;
956956      default:
957         fatalerror("Invalid hardware type in dkong_video_start");
957         fatalerror("Invalid hardware type in dkong_video_start\n");
958958   }
959959}
960960
r17740r17741
981981         radarscp_draw_background(screen.machine(), state, bitmap, cliprect);
982982         break;
983983      default:
984         fatalerror("Invalid hardware type in dkong_video_update");
984         fatalerror("Invalid hardware type in dkong_video_update\n");
985985   }
986986   return 0;
987987}
trunk/src/mame/video/gaelco3d.c
r17740r17741
378378   /* append the data to our buffer */
379379   m_polydata_buffer[m_polydata_count++] = data;
380380   if (m_polydata_count >= MAX_POLYDATA)
381      fatalerror("Out of polygon buffer &space!");
381      fatalerror("Out of polygon buffer &space!\n");
382382
383383   /* if we've accumulated a completed poly set of data, queue it */
384384   if (!machine().video().skip_this_frame())
trunk/src/mame/video/snk.c
r17740r17741
187187   int i;
188188
189189   if(!(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS))
190      fatalerror("driver should use VIDEO_HAS_SHADOWS");
190      fatalerror("driver should use VIDEO_HAS_SHADOWS\n");
191191
192192   /* prepare shadow draw table */
193193   for(i = 0; i <= 5; i++) state->m_drawmode_table[i] = DRAWMODE_SOURCE;
r17740r17741
204204   int i;
205205
206206   if(!(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS))
207      fatalerror("driver should use VIDEO_HAS_SHADOWS");
207      fatalerror("driver should use VIDEO_HAS_SHADOWS\n");
208208
209209   /* prepare shadow draw table */
210210   for(i = 0; i <= 13; i++) state->m_drawmode_table[i] = DRAWMODE_SOURCE;
trunk/src/mame/video/decospr.c
r17740r17741
207207   //printf("cliprect %04x, %04x\n", cliprect.min_y, cliprect.max_y);
208208
209209   if (m_sprite_bitmap.valid() && m_pricallback)
210      fatalerror("m_sprite_bitmap && m_pricallback is invalid");
210      fatalerror("m_sprite_bitmap && m_pricallback is invalid\n");
211211
212212   if (m_sprite_bitmap.valid())
213213      m_sprite_bitmap.fill(0, cliprect);
r17740r17741
565565void decospr_device::inefficient_copy_sprite_bitmap(bitmap_rgb32 &bitmap, const rectangle &cliprect, UINT16 pri, UINT16 priority_mask, UINT16 colbase, UINT16 palmask, UINT8 alpha)
566566{
567567   if (!m_sprite_bitmap.valid())
568      fatalerror("decospr_device::inefficient_copy_sprite_bitmap with no m_sprite_bitmap");
568      fatalerror("decospr_device::inefficient_copy_sprite_bitmap with no m_sprite_bitmap\n");
569569
570570   int y, x;
571571   const pen_t *paldata = machine().pens;
trunk/src/mame/video/leland.c
r17740r17741
112112         break;
113113
114114      default:
115         fatalerror("Unexpected leland_gfx_port_w");
115         fatalerror("Unexpected leland_gfx_port_w\n");
116116         break;
117117   }
118118}
trunk/src/mame/video/segaic16.c
r17740r17741
10421042         break;
10431043
10441044      default:
1045         fatalerror("Invalid tilemap index specified in segaic16_tilemap_init");
1045         fatalerror("Invalid tilemap index specified in segaic16_tilemap_init\n");
10461046   }
10471047
10481048   /* determine the parameters of the tilemaps */
r17740r17741
10851085         break;
10861086
10871087      default:
1088         fatalerror("Invalid tilemap type specified in segaic16_tilemap_init");
1088         fatalerror("Invalid tilemap type specified in segaic16_tilemap_init\n");
10891089   }
10901090
10911091   /* create the tilemap for the text layer */
r17740r17741
17981798         break;
17991799
18001800      default:
1801         fatalerror("Invalid road index specified in segaic16_road_init");
1801         fatalerror("Invalid road index specified in segaic16_road_init\n");
18021802   }
18031803
18041804   /* determine the parameters of the road */
r17740r17741
18181818         break;
18191819
18201820      default:
1821         fatalerror("Invalid road system specified in segaic16_road_init");
1821         fatalerror("Invalid road system specified in segaic16_road_init\n");
18221822   }
18231823}
18241824
r17740r17741
19031903         break;
19041904
19051905      default:
1906         fatalerror("Invalid rotate index specified in segaic16_rotate_init");
1906         fatalerror("Invalid rotate index specified in segaic16_rotate_init\n");
19071907   }
19081908
19091909   /* determine the parameters of the rotate */
r17740r17741
19141914         break;
19151915
19161916      default:
1917         fatalerror("Invalid rotate system specified in segaic16_rotate_init");
1917         fatalerror("Invalid rotate system specified in segaic16_rotate_init\n");
19181918   }
19191919
19201920   /* allocate a buffer for swapping */
trunk/src/mame/video/model3.c
r17740r17741
747747      case 0x80:      /* Gamma-table ? */
748748         break;
749749      default:
750         fatalerror("Unknown texture type: %02X: ", header >> 24);
750         fatalerror("Unknown texture type: %02X\n", header >> 24);
751751         break;
752752   }
753753}
r17740r17741
940940{
941941   state->m_matrix_stack_ptr++;
942942   if (state->m_matrix_stack_ptr >= MATRIX_STACK_SIZE)
943      fatalerror("push_matrix_stack: matrix stack overflow");
943      fatalerror("push_matrix_stack: matrix stack overflow\n");
944944
945945   memcpy( &state->m_matrix_stack[state->m_matrix_stack_ptr], &state->m_matrix_stack[state->m_matrix_stack_ptr-1], sizeof(MATRIX));
946946}
r17740r17741
949949{
950950   state->m_matrix_stack_ptr--;
951951   if (state->m_matrix_stack_ptr < 0)
952      fatalerror("pop_matrix_stack: matrix stack underflow");
952      fatalerror("pop_matrix_stack: matrix stack underflow\n");
953953}
954954
955955static void multiply_matrix_stack(model3_state *state, MATRIX matrix)
r17740r17741
13381338   if (address & 0x800000)
13391339   {
13401340      if (address >= 0x840000) {
1341         fatalerror("get_memory_pointer: invalid display list memory address %08X", address);
1341         fatalerror("get_memory_pointer: invalid display list memory address %08X\n", address);
13421342      }
13431343      return &state->m_display_list_ram[address & 0x7fffff];
13441344   }
13451345   else
13461346   {
13471347      if (address >= 0x100000) {
1348         fatalerror("get_memory_pointer: invalid node ram address %08X", address);
1348         fatalerror("get_memory_pointer: invalid node ram address %08X\n", address);
13491349      }
13501350      return &state->m_culling_ram[address];
13511351   }
trunk/src/mame/video/namcos22.c
r17740r17741
11531153               break;
11541154
11551155            default:
1156               fatalerror("invalid node->type");
1156               fatalerror("invalid node->type\n");
11571157               break;
11581158            }
11591159            FreeSceneNode( node );
r17740r17741
23242324   int finish = addr + chunkLength;
23252325
23262326   if( chunkLength>0x100 )
2327      fatalerror( "bad packet length" );
2327      fatalerror( "bad packet length\n" );
23282328
23292329   while( addr<finish )
23302330   {
trunk/src/mame/video/galaxold.c
r17740r17741
14431443
14441444   if (total_stars != STAR_COUNT)
14451445   {
1446      fatalerror("total_stars = %d, STAR_COUNT = %d",total_stars,STAR_COUNT);
1446      fatalerror("total_stars = %d, STAR_COUNT = %d\n",total_stars,STAR_COUNT);
14471447   }
14481448}
14491449
trunk/src/mame/video/atarisy1.c
r17740r17741
674674      break;
675675
676676   default:
677      fatalerror("Unsupported bpp");
677      fatalerror("Unsupported bpp\n");
678678   }
679679
680680   /* set the color information */
trunk/src/mame/video/konamiic.c
r17740r17741
13301330      break;
13311331
13321332   default:
1333      fatalerror("Unsupported layout");
1333      fatalerror("Unsupported layout\n");
13341334   }
13351335
13361336   if (VERBOSE && !(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS))
r17740r17741
21112111         break;
21122112
21132113      default:
2114         fatalerror("Unsupported bpp");
2114         fatalerror("Unsupported bpp\n");
21152115   }
21162116
21172117   machine.gfx[gfx_index]->set_granularity(16); /* override */
trunk/src/mame/video/konicdev.c
r17740r17741
11721172
11731173   if (len == 2) return;
11741174
1175   if (len % 4) fatalerror("shuffle() - not modulo 4");   /* must not happen */
1175   if (len % 4) fatalerror("shuffle() - not modulo 4\n");   /* must not happen */
11761176
11771177   len /= 2;
11781178
r17740r17741
11941194
11951195   if (len == 2) return;
11961196
1197   if (len % 4) fatalerror("shuffle() - not modulo 4");   /* must not happen */
1197   if (len % 4) fatalerror("shuffle() - not modulo 4\n");   /* must not happen */
11981198
11991199   len /= 2;
12001200
r17740r17741
28202820      break;
28212821
28222822   default:
2823      fatalerror("Unsupported plane_order");
2823      fatalerror("Unsupported plane_order\n");
28242824   }
28252825
28262826   /* deinterleave the graphics, if needed */
r17740r17741
33833383      break;
33843384
33853385   default:
3386      fatalerror("Unknown plane_order");
3386      fatalerror("Unknown plane_order\n");
33873387   }
33883388
33893389   if (VERBOSE && !(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS))
r17740r17741
42214221      break;
42224222
42234223   default:
4224      fatalerror("Unsupported plane_order");
4224      fatalerror("Unsupported plane_order\n");
42254225   }
42264226
42274227   if (VERBOSE && !(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS))
r17740r17741
50995099      break;
51005100
51015101   default:
5102      fatalerror("Unsupported plane_order");
5102      fatalerror("Unsupported plane_order\n");
51035103   }
51045104
51055105   if (VERBOSE)
r17740r17741
52365236      break;
52375237
52385238   default:
5239      fatalerror("Unsupported layout");
5239      fatalerror("Unsupported layout\n");
52405240   }
52415241
52425242   if (VERBOSE && !(machine.config().m_video_attributes & VIDEO_HAS_SHADOWS))
r17740r17741
56485648      break;
56495649
56505650   default:
5651      fatalerror("Unsupported bpp");
5651      fatalerror("Unsupported bpp\n");
56525652   }
56535653
56545654   k051316->memory_region = intf->gfx_memory_region;
r17740r17741
83398339         break;
83408340
83418341      default:
8342         fatalerror("Unsupported bpp");
8342         fatalerror("Unsupported bpp\n");
83438343   }
83448344
83458345   machine().gfx[intf->gfx_num]->set_granularity(16); /* override */
r17740r17741
90389038         }
90399039         default:
90409040         {
9041            fatalerror("k001006_r, unknown device %02X", k001006->device_sel);
9041            fatalerror("k001006_r, unknown device %02X\n", k001006->device_sel);
90429042         }
90439043      }
90449044   }
trunk/src/mame/video/n64.c
r17740r17741
30313031
30323032   if (tl != th)
30333033   {
3034      fatalerror("Load tlut: tl=%d, th=%d",tl,th);
3034      fatalerror("Load tlut: tl=%d, th=%d\n",tl,th);
30353035   }
30363036
30373037   int count = (sh >> 2) - (sl >> 2) + 1;
r17740r17741
30433043      {
30443044         if (tile[tilenum].tmem < 256)
30453045         {
3046            fatalerror("rdp_load_tlut: loading tlut into low half at %d qwords",tile[tilenum].tmem);
3046            fatalerror("rdp_load_tlut: loading tlut into low half at %d qwords\n",tile[tilenum].tmem);
30473047         }
30483048         UINT32 srcstart = (MiscState.TIAddress + (tl >> 2) * (MiscState.TIWidth << 1) + (sl >> 1)) >> 1;
30493049         UINT16 *dst = GetTMEM16();
r17740r17741
30953095
30963096   if (sh < sl)
30973097   {
3098      fatalerror("load_block: sh < sl");
3098      fatalerror("load_block: sh < sl\n");
30993099   }
31003100
31013101   INT32 width = (sh - sl) + 1;
trunk/src/mess/drivers/x68k.c
r17740r17741
163163        case 6: return attotime::from_nsec(25000);
164164        case 7: return attotime::from_nsec(50000);
165165        default:
166            fatalerror("out of range");
166            fatalerror("out of range\n");
167167    }
168168}
169169#endif

Previous 199869 Revisions Next


© 1997-2024 The MAME Team