src/driver.c :
DRIVER( kof2k4se ) /* 0271 (c) 2003 Snk / Playmore */
src/neogeo.c (section ROM_START) :
ROM_START( kof2k4se )
ROM_REGION( 0x900000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "2k4-p1.bin" , 0x000000, 0x100000, CRC(5f482757) )
ROM_LOAD16_WORD_SWAP( "2k4-p2.bin" , 0x100000, 0x400000, CRC(e6c50566) )
ROM_LOAD16_WORD_SWAP( "2k4-p2d.bin" , 0x500000, 0x400000, CRC(698679a7) )
NEO_SFIX_128K( "2k4-s1.bin", CRC(a3c9b2d8) )
NEO_BIOS_SOUND_128K( "2k4-m1.bin", CRC(5a47d9ad) )
ROM_REGION( 0x1000000, REGION_SOUND1, 0)
ROM_LOAD( "2k4-v1.bin", 0x000000, 0x400000, CRC(8991f6e9) )
ROM_LOAD( "2k4-v2.bin", 0x400000, 0x400000, CRC(511e4d2f) )
ROM_LOAD( "2k4-v3.bin", 0x800000, 0x400000, CRC(1dd8b53a) )
ROM_LOAD( "2k4-v4.bin", 0xc00000, 0x400000, CRC(63bb5462) )
NO_DELTAT_REGION
ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "2k4-c1.bin", 0x0000000, 0x800000, CRC(7a050288) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k4-c2.bin", 0x0000001, 0x800000, CRC(e924afcf) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "2k4-c3.bin", 0x1000000, 0x800000, CRC(959fad0b) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k4-c4.bin", 0x1000001, 0x800000, CRC(efe6a468) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "2k4-c5.bin", 0x2000000, 0x800000, CRC(74bba7c6) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k4-c6.bin", 0x2000001, 0x800000, CRC(e20d2216) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "2k4-c7.bin", 0x3000000, 0x800000, CRC(fa705b2b) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k4-c8.bin", 0x3000001, 0x800000, CRC(2c912ff9) ) /* Plane 2,3 */
ROM_END
src/neogeo.c (section DRIVER_INIT) :
DRIVER_INIT( kof2k4se )
{
UINT8 *src = memory_region(REGION_CPU1)+0x100000;
UINT8 *dst = malloc(0x400000);
unsigned int sec[] = {0x300000,0x200000,0x100000,0x000000};
if (dst)
{
memcpy(dst,src,0x400000);
for(int i = 0; i < 4; ++i)
{
memcpy(src+i*0x100000,dst+sec[i],0x100000);
}
free(dst);
}
init_neogeo();
}
src/neogeo.c (section DRIVER_INIT) :
/* Dragonsoft */
GAMEB( 2004, kof2k4se, neogeo, neogeo, neogeo, neogeo, kof2k4se, ROT0, "DragonSoft", "The King of Fighters 2004 - Special Edition (Hac)", 0 )
I get this error on the black screen.
src/driver/neogeo.c: In function ' init_kof2k4se':
src/driver/neogeo.c:6898: error: 'for' loop initial declaration used outside C99 mode