tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
heroic: fix infinite loop when starting some games
K900
2 years ago
c240d63c
e9a9a606
+26
2 changed files
expand all
collapse all
unified
split
pkgs
games
heroic
default.nix
fix-infinite-loop.patch
+3
pkgs/games/heroic/default.nix
···
45
45
./remove-drm-support.patch
46
46
# Make Heroic create Steam shortcuts (to non-steam games) with the correct path to heroic.
47
47
./fix-non-steam-shortcuts.patch
48
48
+
# Fix reg add infinite loop
49
49
+
# Submitted upstream: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/3210
50
50
+
./fix-infinite-loop.patch
48
51
];
49
52
50
53
postPatch = ''
+23
pkgs/games/heroic/fix-infinite-loop.patch
···
1
1
+
From b698779053b7ba31bd8e69b230e86515e3019bf6 Mon Sep 17 00:00:00 2001
2
2
+
From: K900 <me@0upti.me>
3
3
+
Date: Sun, 5 Nov 2023 22:04:32 +0300
4
4
+
Subject: [PATCH] Force add the registry entry
5
5
+
6
6
+
Otherwise, newer Wine versions will prompt to overwrite it and loop there forever.
7
7
+
---
8
8
+
src/backend/storeManagers/legendary/setup.ts | 2 +-
9
9
+
1 file changed, 1 insertion(+), 1 deletion(-)
10
10
+
11
11
+
diff --git a/src/backend/storeManagers/legendary/setup.ts b/src/backend/storeManagers/legendary/setup.ts
12
12
+
index 1837106621..b5c2432435 100644
13
13
+
--- a/src/backend/storeManagers/legendary/setup.ts
14
14
+
+++ b/src/backend/storeManagers/legendary/setup.ts
15
15
+
@@ -20,7 +20,7 @@ export const legendarySetup = async (appName: string) => {
16
16
+
17
17
+
// Fixes games like Fallout New Vegas and Dishonored: Death of the Outsider
18
18
+
await runWineCommandOnGame(appName, {
19
19
+
- commandParts: ['reg', 'add', 'HKEY_CLASSES_ROOT\\com.epicgames.launcher'],
20
20
+
+ commandParts: ['reg', 'add', 'HKEY_CLASSES_ROOT\\com.epicgames.launcher', '/f'],
21
21
+
wait: true,
22
22
+
protonVerb: 'waitforexitandrun'
23
23
+
})