Jump to content
IGNORED

Need some help compiling MacMAME


Bakasama

Recommended Posts

Since this board seems to have a fair number of programmers, I thought I would get some help with this.

 

I'm trying adapt some of the code from Misfit MAME 122 to MacMAME 103a. After many hours of work I managed to get MacMAME to compile without errors with added code. One of things I'm trying to do is making MacMAME work with this. It's a hack that saves high scores from Crazy Kong into NVRAM. I managed to get MacMAME to load the game but I've hit a snag. The app crashed due to:

 

"MacMAME has encounter a problem"

"nvram handler called without nvram in the memory map"

 

Me being not so great with C++, I found out what the problem is but I don't know how to fix it.

 

Here's the code that's stumping me:

 

static MACHINE_DRIVER_START( ckong )
MDRV_IMPORT_FROM(cclimber)
MDRV_VISIBLE_AREA(0*8, 32*8-1, 2*8, 32*8-1)
MACHINE_DRIVER_END

static MACHINE_DRIVER_START( ckonghs )
/* basic machine hardware */
MDRV_IMPORT_FROM(ckong)
MDRV_CPU_MODIFY("main")
MDRV_CPU_PROGRAM_MAP(ckonghs_map,0)
MDRV_NVRAM_HANDLER(generic_0fill) //problem code here
MACHINE_DRIVER_END

 

If anyone can tell me what I did wrong and help fix this, I would grateful.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...