Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
rakan boiboik

driversection in Mameox

Recommended Posts

Hello everybody,

 

At first time i have to say i am french, so i'll do my best to speak properly :)

 

Here is my problem: i started 1 month ago to compile Bendermameox: first i added some clones and neogeo games successfully, all works well.

 

However, i tried to add Tatsumi games( Round up 5, Apache 3 and Cycle warriors) but there's something i don't understand: in XbesectionUtil.cpp, all the mame driver have a number. The last number is for Crystal system( 851 ), so i take the number "852" for the Tatsumi games. in my file Tatsumi.c i added this on top of the file:

 

#pragma code_seg("C852")

#pragma data_seg("D852")

#pragma bss_seg("B852")

#pragma const_seg("K852")

#pragma comment(linker, "/merge:D852=852")

#pragma comment(linker, "/merge:C852=852")

#pragma comment(linker, "/merge:B852=852")

#pragma comment(linker, "/merge:K852=852")

 

and at the end of the file:

 

#pragma code_seg()

#pragma data_seg()

#pragma bss_seg()

#pragma const_seg()

 

but the problem is each time i edit XbesectionUtil.cpp by added this line:

 

REGISTER_DRIVERSECTION( "tatsumi.c", "852" ),

 

i have an error at the end of compilation which is: "too many initializers in XbesectionUtil.cpp."

Well, somebody could explain to me how add a driver section in XbesectionUtil, because i can't understand how it works.

 

I hope you will give me an answer and have a nice day.

Share this post


Link to post
Share on other sites

It sounds like a 851-member array is defined somewhere, you will need to find it and increase the size.

 

Or maybe there is another place you need to add a bit of code.

 

That's my total guess as I don't have the source code.

Share this post


Link to post
Share on other sites
It sounds like a 851-member array is defined somewhere, you will need to find it and increase the size.

 

Or maybe there is another place you need to add a bit of code.

 

That's my total guess as I don't have the source code.

 

Thanks Robert for this quick answer. I forgot say that in the XbesectionUtil there's this line:

 

#define NUM_DRIVERSECTIONS 754

 

So i can't understand why there is 754 driver sections, because the last driver have number"851", and a bit of drivers have the same number :)

 

Have a nice day

Edited by rakan boiboik

Share this post


Link to post
Share on other sites

But are there actually 851 drivers? There might be some gaps, enough to reduce the total number of drivers to 754.

 

If that's the case, just bump it to 755.

Share this post


Link to post
Share on other sites
But are there actually 851 drivers? There might be some gaps, enough to reduce the total number of drivers to 754.

 

If that's the case, just bump it to 755.

 

So you're right Robert, there's only 754 drivers in driver section, i bumped it to 755. The positive point is i had no compilation errors, i obtained my default.xbe and Mameox.xbe, but the 3 Tatsumi games are invisible on my Xbox...

 

Edit: ok i think it's to difficult to do this and i've not the level . I give up!

Edited by rakan boiboik

Share this post


Link to post
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.

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.


×
×
  • Create New...