mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
naomi: fix some crashes, there are more (nw)
This commit is contained in:
parent
42b047920e
commit
542ce66077
@ -394,7 +394,7 @@ void naomi_gdrom_board::device_start()
|
||||
|
||||
UINT64 key;
|
||||
|
||||
const UINT8 *picdata = memregion(pic_tag)->base();
|
||||
const UINT8 *picdata = machine().root_device().memregion(pic_tag)->base();
|
||||
|
||||
if(picdata) {
|
||||
if(machine().root_device().memregion(pic_tag)->bytes() >= 0x4000) {
|
||||
|
@ -31,7 +31,7 @@ void naomi_m1_board::device_start()
|
||||
{
|
||||
naomi_board::device_start();
|
||||
|
||||
const UINT8 *key_data = memregion(key_tag)->base();
|
||||
const UINT8 *key_data = machine().root_device().memregion(key_tag)->base();
|
||||
key = (key_data[0] << 24) | (key_data[1] << 16) | (key_data[2] << 8) | key_data[3];
|
||||
buffer = auto_alloc_array(machine(), UINT8, BUFFER_SIZE);
|
||||
|
||||
|
@ -20,7 +20,7 @@ void naomi_m2_board::device_start()
|
||||
{
|
||||
naomi_board::device_start();
|
||||
|
||||
const UINT8 *key_data = memregion(key_tag)->base();
|
||||
const UINT8 *key_data = machine().root_device().memregion(key_tag)->base();
|
||||
key = (key_data[0] << 24) | (key_data[1] << 16) | (key_data[2] << 8) | key_data[3];
|
||||
|
||||
ram = auto_alloc_array(machine(), UINT8, RAM_SIZE);
|
||||
|
@ -45,7 +45,7 @@ void naomi_m4_board::device_start()
|
||||
{
|
||||
naomi_board::device_start();
|
||||
|
||||
const UINT8 *key_data = memregion(key_tag)->base();
|
||||
const UINT8 *key_data = machine().root_device().memregion(key_tag)->base();
|
||||
key = (key_data[2] << 8) | key_data[3];
|
||||
iv = (key_data[0] << 8) | key_data[1];
|
||||
buffer = auto_alloc_array(machine(), UINT8, BUFFER_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user