X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fdatabase.c;h=87b02a9653d138ff4e8eb2aac8a95687fa58e05e;hb=26e9c4f1dbc7b0181cc085247f0ad32de3782402;hp=f0015017a3117e634375c32c67504e6980f98baa;hpb=353119c25154ebaf019d28a7c28bb34d8f4e75fa;p=pcsx_rearmed.git diff --git a/libpcsxcore/database.c b/libpcsxcore/database.c index f0015017..87b02a96 100644 --- a/libpcsxcore/database.c +++ b/libpcsxcore/database.c @@ -53,6 +53,12 @@ static const char * const gpu_centering_hack_db[] = "SLPM86009", }; +static const char * const dualshock_init_analog_hack_db[] = +{ + /* Formula 1 Championship Edition */ + "SLUS00546", +}; + #define HACK_ENTRY(var, list) \ { #var, &Config.hacks.var, list, ARRAY_SIZE(list) } @@ -69,6 +75,7 @@ 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(dualshock_init_analog, dualshock_init_analog_hack_db), }; static const struct @@ -98,6 +105,9 @@ cycle_multiplier_overrides[] = { 153, { "SLUS01032", "SLES02914" } }, /* 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" } }, }; static const struct @@ -148,6 +158,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++) {