From: roberto zandonà [mailto:robiza71@tin.it]
Subject: Fw: fix for toki060gre please credits the fix to robiza and Corrado Tomaselli
This commit is contained in:
parent
2b0c136968
commit
bbffc81785
@ -726,6 +726,18 @@ ROM_END
|
|||||||
|
|
||||||
static DRIVER_INIT( toki )
|
static DRIVER_INIT( toki )
|
||||||
{
|
{
|
||||||
|
UINT8 *ROM = memory_region(REGION_SOUND1);
|
||||||
|
UINT8 *buffer = malloc_or_die(0x20000);
|
||||||
|
int i;
|
||||||
|
|
||||||
|
memcpy(buffer,ROM,0x20000);
|
||||||
|
for( i = 0; i < 0x20000; i++ )
|
||||||
|
{
|
||||||
|
ROM[i] = buffer[BITSWAP24(i,23,22,21,20,19,18,17,16,13,14,15,12,11,10,9,8,7,6,5,4,3,2,1,0)];
|
||||||
|
}
|
||||||
|
|
||||||
|
free(buffer);
|
||||||
|
|
||||||
seibu_sound_decrypt(REGION_CPU2,0x2000);
|
seibu_sound_decrypt(REGION_CPU2,0x2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -800,6 +812,20 @@ static DRIVER_INIT(jujub)
|
|||||||
rom[i] = src^0x55;
|
rom[i] = src^0x55;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
UINT8 *ROM = memory_region(REGION_SOUND1);
|
||||||
|
UINT8 *buffer = malloc_or_die(0x20000);
|
||||||
|
int i;
|
||||||
|
|
||||||
|
memcpy(buffer,ROM,0x20000);
|
||||||
|
for( i = 0; i < 0x20000; i++ )
|
||||||
|
{
|
||||||
|
ROM[i] = buffer[BITSWAP24(i,23,22,21,20,19,18,17,16,13,14,15,12,11,10,9,8,7,6,5,4,3,2,1,0)];
|
||||||
|
}
|
||||||
|
|
||||||
|
free(buffer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user