diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 20251c2376..1198de0c43 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -3,6 +3,7 @@ - Feature: [#27153] [Plugin] Add `guestsEntertained` to `Entertainer` interface. - Improved: [#21400] The selector for setting staff patrol areas is now drawn on the water as well as on the surface under water. - Improved: [#26947] Rain is now drawn next to the bottom info panels (in RCT2 style). +- Improved: [#27097] On Linux, Flatpak Steam RCTC/RCT2 paths are now auto-detected. - Change: [#27100] Negative G-forces no longer turn red in the stats window and graph when below -2.50. - Fix: [#1514] Wrong capitalisation for strings in the Guest List window. - Fix: [#12516] Sprites past 65,536 pixels are drawn in the wrong place by the software renderer, most visibly in long scenario lists. diff --git a/src/openrct2/platform/Platform.Linux.cpp b/src/openrct2/platform/Platform.Linux.cpp index 3e21ecbb79..d8c48bcd3d 100644 --- a/src/openrct2/platform/Platform.Linux.cpp +++ b/src/openrct2/platform/Platform.Linux.cpp @@ -383,6 +383,13 @@ namespace OpenRCT2::Platform { ret.roots.emplace_back(snapLocalShareSteamPath); } + + // The Flatpak build of Steam keeps its data in the app's sandboxed home directory. + auto flatpakSteamPath = Path::Combine(homeDir, u8".var/app/com.valvesoftware.Steam/.local/share/Steam"); + if (Path::DirectoryExists(flatpakSteamPath)) + { + ret.roots.emplace_back(flatpakSteamPath); + } } return ret; diff --git a/src/openrct2/platform/Platform.h b/src/openrct2/platform/Platform.h index e1819f4aa5..baae59e091 100644 --- a/src/openrct2/platform/Platform.h +++ b/src/openrct2/platform/Platform.h @@ -94,7 +94,7 @@ namespace OpenRCT2::Platform struct SteamPaths { - sfl::static_vector roots{}; + sfl::static_vector roots{}; /** * Used by native applications and applications installed through Steam Play. */