Jump to content

Recommended Posts

  • Replies 34
  • Created
  • Last Reply

Top Posters In This Topic

Posted

having a minor prob here, when i try to add the init's for mslug4 and rotd i get an error :(

heres an example of what i did:

static int rotdInit()
{
nNeoProtectionXor = 0x3f;
nPCM2Value=16;
return NeoInit();
}

struct BurnDriver BurnDrvrotd = {

Posted (edited)

havent tried it yet, but that was goddamn awesome work you made there! ;)

 

i want metal slug 5 code too you foo! :Pj/k, though i really wish one exist :(

Edited by Xeon
Posted (edited)

i cant get it to work too. heres my error:

 

MinGWC:\fbasrc>make >log.txt
src/burn/neogeo/neo_run.cpp: In function `int LoadRoms(NeoGameInfo*)':
src/burn/neogeo/neo_run.cpp:522: error: ISO C++ forbids variable-size array `
  buffer'
C:\MINGW\BIN\MAKE.EXE: *** [neo_run.o] Error 1

 

i modded the code slightly in neogeo.h though, since "extern int ncthd2003;" already existed, i decided to add "extern int nnPCM2Value;" instead, but im not sure if that made it worse (?)

Edited by Xeon
Posted (edited)

Oops!!! I copied the wrong line from neogeo.h when making my driver page.

 

Instead of adding this in neogeo.h

extern int ncthd2003;

 

add this:

extern int nPCM2Value;

 

I've fixed it now on the page I posted.

Edited by iq_132
Posted

i'm still getting a problem adding the init for mslug or rotd, says:

src/burn/neogeo/d_neogeo.cpp: In function `int mslug4Init()':
src/burn/neogeo/d_neogeo.cpp:7121: `nPCM2Value' undeclared (first use this
  function)
src/burn/neogeo/d_neogeo.cpp:7121: (Each undeclared identifier is reported only

  once for each function it appears in.)
make: *** [d_neogeo.o] Error 1

Posted (edited)

nevermind, an error on my part hehe. great work man ;)

 

sound is still scratchy tho :(

Edited by Prican25
Posted

Hmm.. Give me a little while and I'll figure it out :(

Posted (edited)

Actually, I figured it out already :(

 

You want to find this:

 

  if (BurnDrvGetHardwareCode() & HARDWARE_SNK_SWAPV) {
 	for (int i = 0; i < 0x00200000; i++) {
   unsigned char n = YM2610ADPCMAROM[i];
   YM2610ADPCMAROM[i] = YM2610ADPCMAROM[0x00200000 + i];
   YM2610ADPCMAROM[0x00200000 + i] = n;
 	}
 }
}

 

and put the main body of code after it ( The if (nPCM2Value != 0) part)

 

For some reason there is some code in a different place in my fba source.

Edited by iq_132

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...