From 0de3bab4d10281eecd4746e3700aafb6279f7c9e Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 16 Dec 2024 03:10:00 +0200 Subject: [PATCH 1/3] db: another lightrec hack --- libpcsxcore/database.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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); } From 574eb7d9a0a666089266e29bb0402586ed5cf302 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 16 Dec 2024 03:16:04 +0200 Subject: [PATCH 2/3] attempt to fix github workflows --- .github/workflows/ci-linux-arm64.yml | 2 +- .github/workflows/ci-linux-armhf.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-linux-arm64.yml b/.github/workflows/ci-linux-arm64.yml index 1666b976..249928f3 100644 --- a/.github/workflows/ci-linux-arm64.yml +++ b/.github/workflows/ci-linux-arm64.yml @@ -2,7 +2,7 @@ name: CI (Linux arm64) on: [push, pull_request] jobs: build-linux: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci-linux-armhf.yml b/.github/workflows/ci-linux-armhf.yml index 50858959..6e37781b 100644 --- a/.github/workflows/ci-linux-armhf.yml +++ b/.github/workflows/ci-linux-armhf.yml @@ -2,7 +2,7 @@ name: CI (Linux armhf) on: [push, pull_request] jobs: build-linux: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 with: From a7a6db3389310ca1818c7c604155a8e414142bbf Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 16 Dec 2024 03:18:07 +0200 Subject: [PATCH 3/3] make: no line splitting won't work on libretro-build-libnx-devkitpro , who tf knows why? --- Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e0c69350..7b9ac5ff 100644 --- a/Makefile +++ b/Makefile @@ -475,12 +475,8 @@ target_: $(TARGET) $(TARGET): $(OBJS) ifeq ($(PARTIAL_LINKING), 1) - $(LD) -o $(basename $(TARGET))1.o -r --gc-sections \ - $(addprefix -u ,$(shell cat frontend/libretro-extern)) \ - $(addprefix -u ,$(EXTRA_EXTERN_SYMS)) $^ - $(OBJCOPY) --keep-global-symbols=frontend/libretro-extern \ - $(addprefix -G ,$(EXTRA_EXTERN_SYMS)) \ - $(basename $(TARGET))1.o $(basename $(TARGET)).o + $(LD) -o $(basename $(TARGET))1.o -r --gc-sections $(addprefix -u ,$(shell cat frontend/libretro-extern)) $(addprefix -u ,$(EXTRA_EXTERN_SYMS)) $^ + $(OBJCOPY) --keep-global-symbols=frontend/libretro-extern $(addprefix -G ,$(EXTRA_EXTERN_SYMS)) $(basename $(TARGET))1.o $(basename $(TARGET)).o $(AR) rcs $@ $(basename $(TARGET)).o else ifeq ($(STATIC_LINKING), 1) $(AR) rcs $@ $^