Welcome!

General Emulation => MAME => Topic started by: Ashura-X on August 21, 2012, 11:49:58 AM

Title: Pointless to compile last MAME 0146u5
Post by: Ashura-X on August 21, 2012, 11:49:58 AM
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:

Code: [Select]
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:

Code: [Select]
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:

Code: [Select]
else if(strcmp(crypt_feature,"kof96rm_prot") == 0) { DRIVER_INIT_CALL(kof96rm); }
Title: Re: Pointless to compile last MAME 0146u5
Post by: iq_132 on August 21, 2012, 12:41:54 PM
You'll have to add it to the class in includes/neogeo.h
Title: Re: Pointless to compile last MAME 0146u5
Post by: Ashura-X on August 21, 2012, 01:09:52 PM
Thx a looooot DAve !!!!!!!!!!!!!!!!!!!

:D