Hi all.
I´ve tried a sort of things and still have compile problems with new OO programing.
An easy example, trying to adde a old hack like kof96rm, I´ve added a driver init but the GCC still pops an error:
Compiling src/mame/drivers/neogeo.c...
In file included from src/mame/drivers/neogeo.c:1428:0:
src/mame/drivers/neodrvr.c:11462:1: error: no 'void neogeo_state::init_kof96rm()' member function declared in class 'neogeo_state'
src/mame/drivers/neodrvr.c: In member function 'void neogeo_state::mvs_install_protection(device_image_interface&)':
src/mame/drivers/neodrvr.c:12425:56: error: 'init_kof96rm' was not declared in this scope
src/mame/drivers/neodrvr.c:12878:1: error: 'init_kof96rm' is not a member of 'neogeo_state'
The driver init:
DRIVER_INIT_MEMBER( neogeo_state,kof96rm )
{
// Change CLR.W to CLR.B. Is this a bug in the 68k
// emulation of MAME or that of every other emulator?
DRIVER_INIT_CALL(neogeo);
machine().root_device().memregion( "maincpu" )->base()[0x8CE4] = 0x2d;
}
and the call from the element:
else if(strcmp(crypt_feature,"kof96rm_prot") == 0) { DRIVER_INIT_CALL(kof96rm); }