MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetSearchablePathsRCT2

Function GetSearchablePathsRCT2

src/openrct2/platform/Platform.Linux.cpp:407–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405 }
406
407 std::vector<std::string> GetSearchablePathsRCT2()
408 {
409 auto userHome = GetFolderPath(SpecialFolder::userHome);
410 return {
411 userHome + "/.wine/drive_c/GOG Games/RollerCoaster Tycoon 2 Triple Thrill Pack",
412 userHome + "/.wine/drive_c/Program Files/GalaxyClient/Games/RollerCoaster Tycoon 2 Triple Thrill Pack",
413 userHome + "/.wine/drive_c/Program Files (x86)/GalaxyClient/Games/RollerCoaster Tycoon 2 Triple Thrill Pack",
414 userHome + "/.wine/drive_c/Program Files/Atari/RollerCoaster Tycoon 2",
415 userHome + "/.wine/drive_c/Program Files (x86)/Atari/RollerCoaster Tycoon 2",
416 userHome + "/.wine/drive_c/Program Files/Infogrames/RollerCoaster Tycoon 2",
417 userHome + "/.wine/drive_c/Program Files (x86)/Infogrames/RollerCoaster Tycoon 2",
418 userHome + "/.wine/drive_c/Program Files/Infogrames Interactive/RollerCoaster Tycoon 2",
419 userHome + "/.wine/drive_c/Program Files (x86)/Infogrames Interactive/RollerCoaster Tycoon 2",
420 // game-data-packager uses this path when installing game files
421 "/usr/share/games/roller-coaster-tycoon2",
422 };
423 }
424
425 #ifndef DISABLE_TTF
426 std::string GetFontPath(const TTFFontDescriptor& font)

Callers 1

FindRCT2PathFunction · 0.50

Calls 1

GetFolderPathFunction · 0.70

Tested by

no test coverage detected