From: notaz Date: Mon, 16 Dec 2024 01:10:00 +0000 (+0200) Subject: db: another lightrec hack X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0de3bab4d10281eecd4746e3700aafb6279f7c9e;p=pcsx_rearmed.git db: another lightrec hack --- diff --git a/libpcsxcore/database.c b/libpcsxcore/database.c index 8e2a31ad..cf2a16aa 100644 --- a/libpcsxcore/database.c +++ b/libpcsxcore/database.c @@ -157,6 +157,12 @@ cycle_multiplier_overrides[] = { 200, { "SLUS01519", "SCPS45260", "SLPS01463" } }, }; +static const char * const lightrec_hack_db[] = +{ + /* Tomb Raider (Rev 2) - boot menu clears over itself */ + "SLUS00152", +}; + /* Function for automatic patching according to GameID. */ void Apply_Hacks_Cdrom(void) { @@ -221,6 +227,9 @@ void Apply_Hacks_Cdrom(void) lightrec_hacks = 0; if (Config.hacks.f1) lightrec_hacks |= LIGHTREC_HACK_INV_DMA_ONLY; + for (i = 0; i < ARRAY_SIZE(lightrec_hack_db); i++) + if (strcmp(lightrec_hack_db[i], CdromId) == 0) + lightrec_hacks |= LIGHTREC_HACK_INV_DMA_ONLY; if (lightrec_hacks) SysPrintf("using lightrec_hacks: 0x%x\n", lightrec_hacks); }