Fix Steam app detection if GFE gives us a lower-case path

This commit is contained in:
Cameron Gutman 2019-09-22 10:31:23 -07:00
parent b0d85abfa6
commit 8d4c7bd705

View File

@ -124,7 +124,7 @@ static const char* TAG_APP_INSTALL_PATH = "AppInstallPath";
TemporaryApp* officialSteamApp = nil;
TemporaryApp* manuallyAddedSteamApp = nil;
for (TemporaryApp* app in _appList) {
if (app.installPath != nil && [app.installPath hasSuffix:@"\\Steam\\"]) {
if (app.installPath != nil && [[app.installPath lowercaseString] hasSuffix:@"\\steam\\"]) {
// The official Steam app is marked as HDR supported, while manually added ones are not.
if ([app.name isEqualToString:@"Steam"] && app.hdrSupported) {
officialSteamApp = app;