Here's the MAME version of the mslug5 code I made. (yes, I know there is already code for the bankswitching and such, I'm just sharing because someone may like this solution better.
BTW. THIS IS NOT FOR THE KAWAKS SET.
It's for this P rom:
"268-p1d.bin", 0x000000, 0x800000, CRC(2ECC772D) ) // Neo-PVC Removed
DRIVER_INIT( mslug5 )
{
// Code by IQ_132 - Thanks to HappyASR for the info
data16_t *mem16 = (data16_t *)memory_region(REGION_CPU1);
for (int i = 0; i < 0x100000/2; i++)
{
if ((mem16[i] == 0x33FC) || (mem16[i] == 0x5247))
{
if (mem16[i+3] == 0xfff0)
{
for (int j = i; j < (i+4); j++)
{
mem16[j] = 0x4e71;
}
}
if (mem16[i+3] == 0x33c7)
{
mem16[i+0] = 0x33c7;
mem16[i+1] = 0x002f;
mem16[i+2] = 0xfff0;
mem16[i+3] = 0x5247;
mem16[i+4] = 0xe14f;
mem16[i+5] = 0xe94f;
}
}
}
mem16[0x18430/2] = 0x0001;
mem16[0x18434/2] = 0xFFF0;
neogeo_fix_bank_type = 1;
kof2000_neogeo_gfx_decrypt(0x19);
init_neogeo();
}