Skip to content

Commit

Permalink
Merge branch 'master' into libretro
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Dec 16, 2024
2 parents c784693 + a7a6db3 commit 67881ef
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux-armhf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@ $^
Expand Down
9 changes: 9 additions & 0 deletions libpcsxcore/database.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 67881ef

Please sign in to comment.