mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 20:43:04 +01:00
simplify the Platform::GetInstallPath (linux) by removing unnecessary vector, removing unused #ifdef path and using string_views where appropriate. no vector was actually needed as the prefixes are fixed (same as the SearchLocations) - using a plain array avoids an unnecessary allocation (actually a couple as the old code was using push_back without reserve). how it was tested? run the game, check it finds path OK - PASS run in the debugger, actually loop through OK - PASS