So I nolonger need these right? Because I got a error on the sx_decrypt. Too few arguments to fuction.
static void sx_decrypt( void )
{
int sx_size = memory_region_length( REGION_GFX1 );
UINT8 *rom = memory_region( REGION_GFX1 );
int i;
if ((rom[0] == 0x11) || (rom[0] == 0x22))
{
UINT8 *buf = malloc( sx_size );
memcpy( buf, rom, sx_size );
for( i = 0; i < sx_size; i += 0x10 )
{
memcpy( &rom[ i ], &buf[ i + 8 ], 8 );
memcpy( &rom[ i + 8 ], &buf[ i ], 8 );
}
free( buf );
}
else
if (rom[0] == 0x30)
{
for( i = 0; i < sx_size; i++ )
rom[ i ] = BITSWAP8( rom[ i ], 7, 6, 0, 4, 3, 2, 1, 5 );
}
}
static void samsh5bl_cx_decrypt( void )
{
int cx_size = memory_region_length( REGION_GFX3 );
UINT8 *rom = memory_region( REGION_GFX3 );
UINT8 *buf = malloc( cx_size );
int i;
memcpy( buf, rom, cx_size );
for( i = 0; i < cx_size / 0x40; i++ )
memcpy( &rom[ i * 0x40 ], &buf[ (i ^ 1) * 0x40 ], 0x40 );
free( buf );
}
DRIVER_INIT( kog )
{
UINT8 *rom = memory_region( REGION_CPU1 );
UINT8 *buf = malloc( 0x100000 );
int i;
unsigned int nBank[] = { 0x3, 0x8, 0x7, 0xC, 0x1, 0xA, 0x6, 0xD };
for (i = 0; i < 8; i++)
memcpy (buf + i * 0x20000, rom + nBank[i] * 0x20000, 0x20000);
memcpy( &rom[ 0x000000 ], &buf[ 0x000000 ], 0x100000); //move unscrambled p1 back
memcpy( &rom[ 0x100000 ], &rom[ 0x200000 ], 0x400000); //move p2 rom to original location
free(buf);
sx_decrypt();
samsh5bl_cx_decrypt();
init_neogeo();
}
You didn't say to removed those before make.