Skip to content

Commit

Permalink
d_pgm: oldsInit add IPS_NOT_PROTECT
Browse files Browse the repository at this point in the history
  • Loading branch information
taoenwen committed Feb 11, 2025
1 parent c1012d9 commit 3bb64f9
Showing 1 changed file with 37 additions and 31 deletions.
68 changes: 37 additions & 31 deletions src/burn/drv/pgm/d_pgm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2133,9 +2133,15 @@ STD_ROM_FN(olds)

static INT32 oldsInit()
{
pPgmProtCallback = install_protection_asic25_asic28_olds;

return pgmInit();
if (!(nIpsDrvDefine & IPS_NOT_PROTECT))
pPgmProtCallback = install_protection_asic25_asic28_olds;

// return pgmInit();
int nRet = pgmInit();
FILE* f = fopen("pgm_prg", "wb");
fwrite(PGM68KROM, 0x400000, 1, f);
fclose(f);
return nRet;
}

struct BurnDriver BurnDrvOlds = {
Expand Down Expand Up @@ -2215,23 +2221,23 @@ struct BurnDriver BurnDrvOlds100 = {
static struct BurnRomInfo olds100aRomDesc[] = {
{ "pgm_p0500_v100.u24", 0x0400000, 0x8981fc87, 1 | BRF_PRG | BRF_ESS }, // 0 68K Code

{ "pgm_t0500.u18", 0x0400000, 0xd881726c, 2 | BRF_GRA }, // 5 Tile data
{ "pgm_t0501.u19", 0x0200000, 0xd2106864, 2 | BRF_GRA }, // 6
{ "pgm_t0500.u18", 0x0400000, 0xd881726c, 2 | BRF_GRA }, // 1 Tile data
{ "pgm_t0501.u19", 0x0200000, 0xd2106864, 2 | BRF_GRA }, // 2

{ "pgm_a0500.u5", 0x0400000, 0x80a59197, 3 | BRF_GRA }, // 7 Sprite Color Data
{ "pgm_a0501.u6", 0x0400000, 0x98c931b1, 3 | BRF_GRA }, // 8
{ "pgm_a0502.u7", 0x0400000, 0xc3fcdf1d, 3 | BRF_GRA }, // 9
{ "pgm_a0503.u8", 0x0400000, 0x066dffec, 3 | BRF_GRA }, // 10
{ "pgm_a0504.u11", 0x0400000, 0x45337583, 3 | BRF_GRA }, // 11
{ "pgm_a0505.u12", 0x0400000, 0x5b8cf3a5, 3 | BRF_GRA }, // 12
{ "pgm_a0506.u13", 0x0400000, 0x087ac60c, 3 | BRF_GRA }, // 13
{ "pgm_a0500.u5", 0x0400000, 0x80a59197, 3 | BRF_GRA }, // 3 Sprite Color Data
{ "pgm_a0501.u6", 0x0400000, 0x98c931b1, 3 | BRF_GRA }, // 4
{ "pgm_a0502.u7", 0x0400000, 0xc3fcdf1d, 3 | BRF_GRA }, // 5
{ "pgm_a0503.u8", 0x0400000, 0x066dffec, 3 | BRF_GRA }, // 6
{ "pgm_a0504.u11", 0x0400000, 0x45337583, 3 | BRF_GRA }, // 7
{ "pgm_a0505.u12", 0x0400000, 0x5b8cf3a5, 3 | BRF_GRA }, // 8
{ "pgm_a0506.u13", 0x0400000, 0x087ac60c, 3 | BRF_GRA }, // 9

{ "pgm_b0500.u9", 0x0400000, 0xcde07f74, 4 | BRF_GRA }, // 14 Sprite Masks & Color Indexes
{ "pgm_b0501.u10", 0x0400000, 0x1546c2e9, 4 | BRF_GRA }, // 15
{ "pgm_b0502.u15", 0x0400000, 0xe97b31c3, 4 | BRF_GRA }, // 16
{ "pgm_b0503.u16", 0x0400000, 0xe41d98e4, 4 | BRF_GRA }, // 17
{ "pgm_b0500.u9", 0x0400000, 0xcde07f74, 4 | BRF_GRA }, // 10 Sprite Masks & Color Indexes
{ "pgm_b0501.u10", 0x0400000, 0x1546c2e9, 4 | BRF_GRA }, // 11
{ "pgm_b0502.u15", 0x0400000, 0xe97b31c3, 4 | BRF_GRA }, // 12
{ "pgm_b0503.u16", 0x0400000, 0xe41d98e4, 4 | BRF_GRA }, // 13

{ "pgm_m0500.u1", 0x0200000, 0x37928cdd, 5 | BRF_SND }, // 18 Samples
{ "pgm_m0500.u1", 0x0200000, 0x37928cdd, 5 | BRF_SND }, // 14 Samples

#if !defined (ROM_VERIFY)
// ROM label SP 西遊記 DATA on sticker
Expand Down Expand Up @@ -2260,23 +2266,23 @@ struct BurnDriver BurnDrvOlds100a = {
static struct BurnRomInfo olds103tRomDesc[] = {
{ "p0500.v103", 0x0400000, 0x17e32e14, 1 | BRF_PRG | BRF_ESS }, // 0 68K Code

{ "pgm_t0500.u18", 0x0400000, 0xd881726c, 2 | BRF_GRA }, // 5 Tile data
{ "pgm_t0501.u19", 0x0200000, 0xd2106864, 2 | BRF_GRA }, // 6
{ "pgm_t0500.u18", 0x0400000, 0xd881726c, 2 | BRF_GRA }, // 1 Tile data
{ "pgm_t0501.u19", 0x0200000, 0xd2106864, 2 | BRF_GRA }, // 2

{ "pgm_a0500.u5", 0x0400000, 0x80a59197, 3 | BRF_GRA }, // 7 Sprite Color Data
{ "pgm_a0501.u6", 0x0400000, 0x98c931b1, 3 | BRF_GRA }, // 8
{ "pgm_a0502.u7", 0x0400000, 0xc3fcdf1d, 3 | BRF_GRA }, // 9
{ "pgm_a0503.u8", 0x0400000, 0x066dffec, 3 | BRF_GRA }, // 10
{ "pgm_a0504.u11", 0x0400000, 0x45337583, 3 | BRF_GRA }, // 11
{ "pgm_a0505.u12", 0x0400000, 0x5b8cf3a5, 3 | BRF_GRA }, // 12
{ "pgm_a0506.u13", 0x0400000, 0x087ac60c, 3 | BRF_GRA }, // 13
{ "pgm_a0500.u5", 0x0400000, 0x80a59197, 3 | BRF_GRA }, // 3 Sprite Color Data
{ "pgm_a0501.u6", 0x0400000, 0x98c931b1, 3 | BRF_GRA }, // 4
{ "pgm_a0502.u7", 0x0400000, 0xc3fcdf1d, 3 | BRF_GRA }, // 5
{ "pgm_a0503.u8", 0x0400000, 0x066dffec, 3 | BRF_GRA }, // 6
{ "pgm_a0504.u11", 0x0400000, 0x45337583, 3 | BRF_GRA }, // 7
{ "pgm_a0505.u12", 0x0400000, 0x5b8cf3a5, 3 | BRF_GRA }, // 8
{ "pgm_a0506.u13", 0x0400000, 0x087ac60c, 3 | BRF_GRA }, // 9

{ "pgm_b0500.u9", 0x0400000, 0xcde07f74, 4 | BRF_GRA }, // 14 Sprite Masks & Color Indexes
{ "pgm_b0501.u10", 0x0400000, 0x1546c2e9, 4 | BRF_GRA }, // 15
{ "pgm_b0502.u15", 0x0400000, 0xe97b31c3, 4 | BRF_GRA }, // 16
{ "pgm_b0503.u16", 0x0400000, 0xe41d98e4, 4 | BRF_GRA }, // 17
{ "pgm_b0500.u9", 0x0400000, 0xcde07f74, 4 | BRF_GRA }, // 10 Sprite Masks & Color Indexes
{ "pgm_b0501.u10", 0x0400000, 0x1546c2e9, 4 | BRF_GRA }, // 11
{ "pgm_b0502.u15", 0x0400000, 0xe97b31c3, 4 | BRF_GRA }, // 12
{ "pgm_b0503.u16", 0x0400000, 0xe41d98e4, 4 | BRF_GRA }, // 13

{ "pgm_m0500.u1", 0x0200000, 0x37928cdd, 5 | BRF_SND }, // 18 Samples
{ "pgm_m0500.u1", 0x0200000, 0x37928cdd, 5 | BRF_SND }, // 14 Samples
};

STDROMPICKEXT(olds103t, olds103t, pgm)
Expand Down

0 comments on commit 3bb64f9

Please sign in to comment.