Welcome!

Final Burn Neo => FBN Development => Topic started by: iq_132 on January 11, 2007, 10:23:12 AM

Title: Thunder Heroes driver
Post by: iq_132 on January 11, 2007, 10:23:12 AM
Here's a driver for Thunder Heroes for FBA (nothing difficult really, it is just a hack of Gaia Crusaders).
Title: Re: Thunder Heroes driver
Post by: KOF2112 on January 11, 2007, 11:21:53 AM
 :biggrin:

Thanks for the update ! iq_132

Quote
   { "crvsaders-snd1.u0447",  0x400000, 0x92770a52, BRF_SND },          //  7 YMZ280B (AD)PCM data
   { "crvsaders-snd2.u0454",  0x400000, 0x329AE1CF, BRF_SND },          //  8
   { "t-hero-snd3.u0455",     0x400000, 0x329ae1cf, BRF_SND },          //  9

by
Quote
   { "crvsaders-snd1.u0447",  0x400000, 0x92770a52, BRF_SND },          //  7 YMZ280B (AD)PCM data
   { "crvsaders-snd2.u0454",  0x400000, 0x329AE1CF, BRF_SND },          //  8
   { "t-hero-snd3.u0455",     0x400000, 0x52b0b2c0, BRF_SND },          //  9

Gaia Crusaders
Quote
   { "snd1.447",     0x400000, 0x92770A52, BRF_SND },          //  7 YMZ280B (AD)PCM data
   { "snd1.454",     0x400000, 0x329AE1CF, BRF_SND },          //  8
   { "snd1.455",     0x400000, 0x4048D64E, BRF_SND },          //  9

by
Quote
   { "snd1.447",     0x400000, 0x92770A52, BRF_SND },          //  7 YMZ280B (AD)PCM data
   { "snd2.454",     0x400000, 0x329AE1CF, BRF_SND },          //  8
   { "snd3.454",     0x400000, 0x4048D64E, BRF_SND },          //  9
Title: Re: Thunder Heroes driver
Post by: BisonSAS on January 11, 2007, 09:16:50 PM
Thanks iq_132 & KOF2112! :biggrin:

Any idea for unicode Chinese(?) title? :confused:
Title: Re: Thunder Heroes driver
Post by: Leaf on January 12, 2007, 03:19:50 AM
Any idea for unicode Chinese(?) title? :confused:
If you have used the local gamelist src, (posted here (http://neo-source.com/index.php?topic=532.0))

modify ScrnTitle() in scrn.cpp,
find:
Code: [Select]
TCHAR* pszName = BurnDrvGetText(DRV_FULLNAME);change it to:
Code: [Select]
TCHAR* pszName = TransGameName(BurnDrvGetText(DRV_FULLNAME), false);
If you enable using local gamelist, the window title name will be translated. :D
Title: Re: Thunder Heroes driver
Post by: BisonSAS on January 13, 2007, 12:45:27 PM
No Leaf. :cool:
My question is about this title:
(http://www.bisonsas.xpg.com.br/theroes-chinese-title.png)

I found this UNICODE by title: 霹雳英雄 = u9739\u96F3\u82F1\u96C4

Here this code:
Quote
struct BurnDriver BurnDrvtheroes = {
   "theroes", NULL, NULL, "2001",
   "Thunder Heroes\0", NULL, "Primetec Investments", "Cave",
   L"\u9739\u96F3\u82F1\u96C4 Thunder Heroes\0", NULL, NULL, NULL,
   BDF_GAME_WORKING | BDF_16BIT_ONLY, 2, HARDWARE_CAVE_68K_ONLY,
   NULL, theroesRomInfo, theroesRomName, gaiaInputInfo, theroesDIPInfo,
   DrvInit, DrvExit, DrvFrame, DrvDraw, DrvScan, &CaveRecalcPalette,
   320, 224, 4, 3
};

Thanks ;)
Title: Re: Thunder Heroes driver
Post by: Shoometsu on January 15, 2007, 07:08:30 PM
the last driver uses very long rom names (i.e. "t-hero-snd3.u0455"). nobody posted here, but I needed to change BurnRomInfo.szName size.

src/burn/burn.h
find
Quote
struct BurnRomInfo {
   char szName[16];
   unsigned int nLen;
   unsigned int nCrc;
   unsigned int nType;
};
replace with
Quote
struct BurnRomInfo {
   char szName[24];
   unsigned int nLen;
   unsigned int nCrc;
   unsigned int nType;
};
Title: Re: Thunder Heroes driver
Post by: Leaf on January 18, 2007, 07:27:27 AM
No Leaf. :cool:
My question is about this title:
Sorry, I misunderstood. :p

the last driver uses very long rom names (i.e. "t-hero-snd3.u0455"). nobody posted here, but I needed to change BurnRomInfo.szName size.
Why not change it to:
Quote
struct BurnRomInfo {
    char* szName;
    unsigned int nLen;
    unsigned int nCrc;
    unsigned int nType;
};
:biggrin: