Welcome!

Final Burn Neo => FBN Development => Topic started by: iq_132 on March 06, 2008, 03:59:54 AM

Title: The NewZealand Story driver
Post by: iq_132 on March 06, 2008, 03:59:54 AM
Here's a driver for The NewZealand Story (World, newer) (http://www.mameworld.net/maws/romset/tnzs)

Everything you'd expect is supported, and there are no known bugs at this time.


Credits to Chris Moore, Brad Oliver, Nicola Salmoria, and many others
Title: Re: The NewZealand Story driver
Post by: iq_132 on March 06, 2008, 12:41:01 PM
Got another one working...
Title: Re: The NewZealand Story driver
Post by: JacKc on March 07, 2008, 01:26:45 PM
Amazing...Thanks iq_132 for thoses drivers :biggrin:

More and more games have been ported to FBA for our pleasure...All my support :cool:
Title: Re: The NewZealand Story driver
Post by: hxghwx on March 08, 2008, 02:14:34 AM
Mistake
Title: Re: The NewZealand Story driver
Post by: iq_132 on March 08, 2008, 04:01:52 AM
Your compiler doesn't like these lines:

Code: [Select]
if (x < 0 || x > 255 || y > 223) continue;
if (transp && !src) continue;

replace them with this:

Code: [Select]
if (x < 0 || x > 255 || y > 223) return;
if (transp && !src) return;
Title: Re: The NewZealand Story driver
Post by: hxghwx on March 08, 2008, 04:34:04 AM
Thank you!
Title: Re: The NewZealand Story driver
Post by: kev on March 08, 2008, 11:55:09 AM
To get around the extra function call I changed tnzs_plotpix to this:

Code: [Select]
#define tnzs_plotpix( x,  y, color, src, transp) {if (x < 0 || x > 255 || y > 223) { continue; }  if (transp && !src) {  continue; } pTransDraw[(y << 8) | x] = color | src; }

Probably needs to go on one line unless you split it. Not a big speed difference on PCs but it does help a little on lower power systems. Good driver btw. :)