From 2c9509f988bb419502a8777aed6e859bba7903ac Mon Sep 17 00:00:00 2001 From: Mathias Gibbens Date: Fri, 11 Oct 2024 13:37:12 -0600 Subject: [PATCH] Add Linux searchable paths created by game-data-packager With the changes in #22819, it seems reasonable to add a couple of default searchable paths for Linux that are created by the `game-data-packager` utility, available in Debian and its various derivatives. Signed-off-by: Mathias Gibbens --- src/openrct2/platform/Platform.Linux.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/openrct2/platform/Platform.Linux.cpp b/src/openrct2/platform/Platform.Linux.cpp index 4d4853d9e7..1cfcaf45d6 100644 --- a/src/openrct2/platform/Platform.Linux.cpp +++ b/src/openrct2/platform/Platform.Linux.cpp @@ -335,12 +335,18 @@ namespace OpenRCT2::Platform std::vector GetSearchablePathsRCT1() { - return {}; + return { + // game-data-packager uses this path when installing game files + "/usr/share/games/roller-coaster-tycoon", + }; } std::vector GetSearchablePathsRCT2() { - return {}; + return { + // game-data-packager uses this path when installing game files + "/usr/share/games/roller-coaster-tycoon2", + }; } # ifndef NO_TTF