Author Topic: The NewZealand Story driver  (Read 6008 times)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
The NewZealand Story driver
« on: March 06, 2008, 03:59:54 AM »
Here's a driver for The NewZealand Story (World, newer)

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


Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: The NewZealand Story driver
« Reply #1 on: March 06, 2008, 12:41:01 PM »
Got another one working...


Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: The NewZealand Story driver
« Reply #2 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:


Offline hxghwx

  • Newbies
  • *
  • Posts: 37
  • Karma: +0/-0
Re: The NewZealand Story driver
« Reply #3 on: March 08, 2008, 02:14:34 AM »
Mistake

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: The NewZealand Story driver
« Reply #4 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;


Offline hxghwx

  • Newbies
  • *
  • Posts: 37
  • Karma: +0/-0
Re: The NewZealand Story driver
« Reply #5 on: March 08, 2008, 04:34:04 AM »
Thank you!

kev

  • Guest
Re: The NewZealand Story driver
« Reply #6 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. :)