Jump to content

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.

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

Link to comment
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
Link to comment
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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...