Welcome!

Final Burn Neo => FBN Development => Topic started by: hxghwx on February 18, 2013, 06:06:07 AM

Title: Compile error in FBA
Post by: hxghwx on February 18, 2013, 06:06:07 AM
The old version of the FBA compiler to add color palette function, the running game wrong, who can do me a favor?

Title: Re: Compile error in FBA
Post by: CaptainCPS on February 18, 2013, 01:59:12 PM
The old version of the FBA compiler to add color palette function, the running game wrong, who can do me a favor?

Can you provide more details please? In your post you are not specifying many things, what system you have, compiler you're using, fba source version, what game is giving problems (if any)...any detail you can give is vital to be able to help you.

SeeYa!
 :biggrin:
Title: Re: Compile error in FBA
Post by: hxghwx on February 19, 2013, 05:46:07 AM
=========================================burnint.h================================

Add UINT32 nPaletteEntries;

=========================================burn.h===========================

Add int BurnDrvGetPaletteEntries ( );

==========================================burn.cpp========================

Add extern " C " BurnDrvGetPaletteEntries ( int )

{

Return pDriver[nBurnDrvSelect]->nPaletteEntries;

}

==========================================================================

Mainly to solve the game had " BurnDrvGetPaletteEntries " cannot find symbol, as long as these items compiled a running game can make mistakes.

I used FBA-029686 to try, too.
Title: Re: Compile error in FBA
Post by: doomking on February 19, 2013, 06:42:55 AM
extern "C" BurnDrvGetPaletteEntries(int)
{
   return pDriver[nBurnDrvSelect]->nPaletteEntries;
}

改為:

extern "C" int BurnDrvGetPaletteEntries()
{
   return pDriver[nBurnDrvSelect]->nPaletteEntries;
}
Title: Re: Compile error in FBA
Post by: hxghwx on February 19, 2013, 08:19:39 AM
The next test, or the same. Still thank you!
Title: Re: Compile error in FBA
Post by: hxghwx on February 20, 2013, 04:11:33 AM
Who can help me solve this problem? First, thank you pull