Skip to content

Commit a7bf6d5

Browse files
Change how recomp is detected
1 parent 4beadc5 commit a7bf6d5

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ A mod manager for Hedgehog Engine games on PC.
3737
### Installation
3838
#### Windows
3939
Download the Windows binary from the [releases page](https://github.com/hedge-dev/HedgeModManager/releases) and store it anywhere. Avoid using multiple copies such as placing a copy of Hedge Mod Manager in every game folder.
40-
> [!IMPORTANT]
40+
> [!NOTE]
4141
> .NET 8 Runtime or newer is required to run Hedge Mod Manager. This can be downloaded [here](https://dotnet.microsoft.com/en-us/download/dotnet/9.0).
4242
>
4343
> Make sure you are downloading the **Installer** of **.NET Runtime**. For most systems the **x64** **Installer** is the correct option.
@@ -48,13 +48,11 @@ Download the Windows binary from the [releases page](https://github.com/hedge-de
4848
#### Linux/Steam Deck
4949
The recommended method of installing Hedge Mod Manager is through software managers which use Flathub like KDE Discover on the Steam Deck.
5050
> [!IMPORTANT]
51-
> At the time of writing builds on Flathub by default will not detect games from Epic Games and Steam installed using Flatpak. To fix this you will need to override the permissions with the following commands:
51+
> At the time of writing builds on Flathub by default will not detect flatpak versions of Heroic, Steam and Unleashed Recompiled. To fix this you will need to override the permissions with the following command:
5252
> ```
53-
> flatpak override --user --filesystem=~/.var/app/com.valvesoftware.Steam/.steam/steam/steamapps:create io.github.hedge_dev.hedgemodmanager
54-
> flatpak override --user --filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/GamesConfig:ro io.github.hedge_dev.hedgemodmanager
55-
> flatpak override --user --filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/legendaryConfig/legendary:ro io.github.hedge_dev.hedgemodmanager
56-
>
53+
> flatpak override --user --filesystem=~/.var/app/io.github.hedge_dev.unleashedrecomp:ro --filesystem=~/.var/app/com.valvesoftware.Steam/.steam/steam/steamapps --filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/GamesConfig:ro --filesystem=~/.var/app/com.heroicgameslauncher.hgl/config/heroic/legendaryConfig/legendary:ro io.github.hedge_dev.hedgemodmanager
5754
> ```
55+
> Running this command will give Hedge Mod Manager permissions to access to the flatpaks paths listed above.
5856
5957
Flatpak bundles are also available from the [releases page](https://github.com/hedge-dev/HedgeModManager/releases). Use the `flatpak --user install` command to install these.
6058
> [!NOTE]

Source/HedgeModManager/ModdableGameLocator.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,15 @@ public static List<IModdableGame> LocateGames()
258258
games.Add(game);
259259
}
260260
}
261+
// NOTE: This detection method is heavily flawed.
261262
if (gameInfo.PlatformInfos.TryGetValue("Flatpak", out var flatpakInfo))
262263
{
263264
string root = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
264265
".var/app", flatpakInfo.ID);
265266

266-
if (Directory.Exists(root))
267+
if (Directory.Exists(Path.Combine(root, "data")))
267268
{
268-
// Use custom path for SWA
269+
// Use custom path for Unleashed Recompiled
269270
if (gameInfo.ID == "UnleashedRecompiled")
270271
root = Path.Combine(Paths.GetActualUserConfigPath(), "UnleashedRecomp");
271272

flatpak/io.github.hedge_dev.hedgemodmanager-autobuild.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ finish-args:
1616
# UnleashedRecomp permissions
1717
- --filesystem=~/.config/UnleashedRecomp
1818
- --filesystem=~/.local/share/applications/UnleashedRecomp.desktop:ro
19+
- --filesystem=~/.var/app/io.github.hedge_dev.unleashedrecomp:ro
1920
# Create permissions are required for accessing the mod loader, game and for patching game prefixes
2021
# Steam permissions
2122
- --filesystem=~/.steam/steam/steamapps

flatpak/io.github.hedge_dev.hedgemodmanager.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ finish-args:
1616
# UnleashedRecomp permissions
1717
- --filesystem=~/.config/UnleashedRecomp
1818
- --filesystem=~/.local/share/applications/UnleashedRecomp.desktop:ro
19+
- --filesystem=~/.var/app/io.github.hedge_dev.unleashedrecomp:ro
1920
# Create permissions are required for accessing the mod loader, game and for patching game prefixes
2021
# Steam permissions
2122
- --filesystem=~/.steam/steam/steamapps

0 commit comments

Comments
 (0)