Author Topic: Help, kof2003 pcb decrypted C driver  (Read 5232 times)

Offline lxd_bruce

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +1/-0
Help, kof2003 pcb decrypted C driver
« on: May 13, 2007, 09:23:57 PM »
 :confused:

I need help for kof2003 pcb decrypted C driver.

Here is my driver. I don't know where the error is.

Pls help me, Thx in advance.

Code: [Select]
// kf2k3pcd

static struct BurnRomInfo kf2k3pcdRomDesc[] = {
{ "271-p1.bin",   0x400000, 0xb9da070c, 1 | BRF_ESS | BRF_PRG }, //  0 68K code
{ "271-p2.bin",   0x400000, 0xda3118c4, 1 | BRF_ESS | BRF_PRG }, //  1
{ "271-p3.bin",   0x100000, 0x5cefd0d2, 1 | BRF_ESS | BRF_PRG }, //  1

{ "271-c1d.bin",  0x1000000, 0xC29ACD28, 3 | BRF_GRA }, //  2 Sprite data
{ "271-c2d.bin",  0x1000000, 0x328E80B1, 3 | BRF_GRA }, //  3
{ "271-c3d.bin",  0x1000000, 0x020A11F1, 3 | BRF_GRA }, //  4
{ "271-c4d.bin",  0x1000000, 0x991B5ED2, 3 | BRF_GRA }, //  5
{ "271-c5d.bin",  0x1000000, 0xC2DE8B66, 3 | BRF_GRA }, //  6
{ "271-c6d.bin",  0x1000000, 0x3FF750DB, 3 | BRF_GRA }, //  7

{ "271-m1_decrypted.bin",  0x080000, 0x0e86af8f, 4 | BRF_ESS | BRF_PRG }, // 10 Z80 code (decrypted)

{ "271-v1.bin",  0x1000000, 0x1d96154b, 5 | BRF_SND }, // 16
};

STDROMPICKEXT(kf2k3pcd, kf2k3pcd, kf2k3pcbBIOS);
STD_ROM_FN(kf2k3pcd);


static int kf2k3pcdInit()
{
int nRet;

extern unsigned char* Neo68KBIOS;

nNeoTextROMSize = 0x100000;
pNeoInitCallback = kf2k3pcbCallback;
nRet = NeoInit();

if (nRet == 0) {
PCM2DecryptVInfo Info = { 0xA7001, 0xFF14EA, { 0x4B, 0xA4, 0x63, 0x46, 0xF0, 0x91, 0xEA, 0x62

} };

PCM2DecryptV(&Info);

SekOpen(0);
SekMapMemory(Neo68KBIOS + 0x00000, 0xC00000, 0xC7FFFF, SM_ROM);
SekClose();
}

return nRet;
}

struct BurnDriver BurnDrvkf2k3pcd = {
"kf2k3pcd", "kf2k3pcb", NULL, "2003",
"The King of Fighters 2003 (Japan, JAMMA PCB / decrypted C)\0", NULL, "SNK Playmore", "Neo Geo",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_CLONE, 2, HARDWARE_SNK_NEOGEO | HARDWARE_SNK_P32 | HARDWARE_SNK_PVC_PROT | HARDWARE_SNK_ALTERNATE_TEXT | HARDWARE_SNK_PCB,
NULL, kf2k3pcdRomInfo, kf2k3pcdRomName, neogeoInputInfo, kf2k3pcbDIPInfo,
kf2k3pcdInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
nNeoScreenWidth, 224, 4, 3
};
« Last Edit: May 13, 2007, 09:34:05 PM by iq_132 »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Help, kof2003 pcb decrypted C driver
« Reply #1 on: May 14, 2007, 07:38:28 PM »
in neo_run.cpp
find this

   if (!strcmp(BurnDrvGetTextA(DRV_NAME), "kf2k3pcb")) kof2003biosdecode();

replace with this

   if (!strcmp(BurnDrvGetTextA(DRV_NAME), "kf2k3pcb") || !strcmp(BurnDrvGetTextA(DRV_NAME), "kf2k3pcd")) kof2003biosdecode();


Offline lxd_bruce

  • Jr. Member
  • **
  • Posts: 75
  • Karma: +1/-0
Re: Help, kof2003 pcb decrypted C driver
« Reply #2 on: May 14, 2007, 08:13:48 PM »
cool!!!

It works now :biggrin:

thank you so much, IQ :smilie: