X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fdatabase.c;h=1b76a4386e3f000e936065b0d4e10d7fa9fe4c60;hb=1cdeae2b66fc3ef486ec8016ed5fad437f1a4409;hp=93ef44b5ad7e1c2ad7caefc93b2996bdc024cae2;hpb=9159f799aba897c27569a7a51a40736bd8a90d2f;p=pcsx_rearmed.git diff --git a/libpcsxcore/database.c b/libpcsxcore/database.c index 93ef44b5..1b76a438 100644 --- a/libpcsxcore/database.c +++ b/libpcsxcore/database.c @@ -33,18 +33,18 @@ static const char * const gpu_slow_llist_db[] = "SCES02834", "SCUS94570", "SCUS94616", "SCUS94654", /* Final Fantasy IV */ "SCES03840", "SLPM86028", "SLUS01360", + /* Point Blank - calibration cursor */ + "SCED00287", "SCES00886", "SLUS00481", + /* Simple 1500 Series Vol. 57: The Meiro */ + "SLPM86715", /* Spot Goes to Hollywood */ "SLES00330", "SLPS00394", "SLUS00014", + /* Tiny Tank */ + "SCES01338", "SCES02072", "SCES02072", "SCES02072", "SCES02072", "SCUS94427", /* Vampire Hunter D */ "SLES02731", "SLPS02477", "SLPS03198", "SLUS01138", }; -static const char * const gpu_busy_hack_db[] = -{ - /* ToHeart (Japan) */ - "SLPS01919", "SLPS01920", -}; - static const char * const gpu_centering_hack_db[] = { /* Gradius Gaiden */ @@ -53,6 +53,34 @@ static const char * const gpu_centering_hack_db[] = "SLPM86009", }; +static const char * const dualshock_timing1024_hack_db[] = +{ + /* Judge Dredd - could also be poor cdrom+mdec+dma timing */ + "SLUS00630", "SLES00755", +}; + +static const char * const dualshock_init_analog_hack_db[] = +{ + /* Formula 1 Championship Edition */ + "SLUS00546", +}; + +static const char * const fractional_Framerate_hack_db[] = +{ + /* Dance Dance Revolution */ + "SLPM86503", // 3rd Mix + "SLPM86752", // 4th Mix + "SLPM86266", // 4thMix: The Beat Goes On + "SLPM86831", // Extra Mix + "SLUS01446", // Konamix + /* Dancing Stage Fever */ + "SLES04097", + /* Dancing Stage Fusion */ + "SLES04163", + /* Spyro 2 */ + "SCUS94425", "SCES02104", +}; + #define HACK_ENTRY(var, list) \ { #var, &Config.hacks.var, list, ARRAY_SIZE(list) } @@ -67,8 +95,10 @@ hack_db[] = { HACK_ENTRY(cdr_read_timing, cdr_read_hack_db), HACK_ENTRY(gpu_slow_list_walking, gpu_slow_llist_db), - HACK_ENTRY(gpu_busy, gpu_busy_hack_db), HACK_ENTRY(gpu_centering, gpu_centering_hack_db), + HACK_ENTRY(gpu_timing1024, dualshock_timing1024_hack_db), + HACK_ENTRY(dualshock_init_analog, dualshock_init_analog_hack_db), + HACK_ENTRY(fractional_Framerate, fractional_Framerate_hack_db), }; static const struct @@ -84,6 +114,8 @@ cycle_multiplier_overrides[] = /* Super Robot Taisen Alpha - on the edge with 175, * changing memcard settings is enough to break/unbreak it */ { 190, { "SLPS02528", "SLPS02636" } }, + /* Colin McRae Rally - language selection menu does not work with 175 */ + { 174, { "SLES00477" } }, /* Brave Fencer Musashi - cd sectors arrive too fast */ { 170, { "SLUS00726", "SLPS01490" } }, #if defined(DRC_DISABLE) || defined(LIGHTREC) /* new_dynarec has a hack for this game */ @@ -92,15 +124,19 @@ cycle_multiplier_overrides[] = #endif /* Discworld Noir - audio skips if CPU runs too fast */ { 222, { "SLES01549", "SLES02063", "SLES02064" } }, - /* Judge Dredd - could also be poor MDEC timing */ - { 128, { "SLUS00630", "SLES00755" } }, /* Digimon World */ { 153, { "SLUS01032", "SLES02914" } }, + /* Power Rangers: Lightspeed Rescue - jump does not work with 175 */ + { 222, { "SLUS01114", "SLES03286" } }, /* Syphon Filter - reportedly hangs under unknown conditions */ { 169, { "SCUS94240" } }, /* Psychic Detective - some weird race condition in the game's cdrom code */ { 222, { "SLUS00165", "SLUS00166", "SLUS00167" } }, { 222, { "SLES00070", "SLES10070", "SLES20070" } }, + /* Vib-Ribbon - cd timing issues (PAL+ari64drc only?) */ + { 200, { "SCES02873" } }, + /* Zero Divide - sometimes too fast */ + { 200, { "SLUS00183", "SLES00159", "SLPS00083", "SLPM80008" } }, }; static const struct @@ -151,6 +187,12 @@ void Apply_Hacks_Cdrom(void) } } + if (Config.hacks.dualshock_init_analog) { + // assume the default is off, see LoadPAD1plugin() + for (i = 0; i < 8; i++) + padToggleAnalog(i); + } + /* Apply Memory card hack for Codename Tenka. (The game needs one of the memory card slots to be empty) */ for (i = 0; i < ARRAY_SIZE(MemorycardHack_db); i++) {