forked from rosebudai/OpenRCT2-Web
Add Flatpak Steam paths to RCT2/RCTC detection (#27097)
This will allow users of the Steam Flatpak (https://flathub.org/en/apps/com.valvesoftware.Steam) to have their installations auto-detected.
This commit is contained in:
1 parent
321a189269
commit
e99d7d2b4e
3 files changed
+9
-1
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -94,7 +94,7 @@ namespace OpenRCT2::Platform
|
||||
|
||||
struct SteamPaths
|
||||
{
|
||||
sfl::static_vector<u8string, 5> roots{};
|
||||
sfl::static_vector<u8string, 6> roots{};
|
||||
/**
|
||||
* Used by native applications and applications installed through Steam Play.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user