Author Topic: Pointless to compile last MAME 0146u5  (Read 7645 times)

Offline Ashura-X

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Pointless to compile last MAME 0146u5
« 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); }
« Last Edit: August 21, 2012, 11:52:59 AM by Ashura-X »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Pointless to compile last MAME 0146u5
« Reply #1 on: August 21, 2012, 12:41:54 PM »
You'll have to add it to the class in includes/neogeo.h


Offline Ashura-X

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: Pointless to compile last MAME 0146u5
« Reply #2 on: August 21, 2012, 01:09:52 PM »
Thx a looooot DAve !!!!!!!!!!!!!!!!!!!

:D