From eda8bd705757e77b141eb2e5dc23ab60b144f5d4 Mon Sep 17 00:00:00 2001 From: hawkeye116477 Date: Fri, 17 May 2024 20:42:57 +0200 Subject: [PATCH] #67 --- src/LegendaryEaActivate.xaml.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LegendaryEaActivate.xaml.cs b/src/LegendaryEaActivate.xaml.cs index 4f113a6..90b98a5 100644 --- a/src/LegendaryEaActivate.xaml.cs +++ b/src/LegendaryEaActivate.xaml.cs @@ -95,9 +95,10 @@ private async void UserControl_Loaded(object sender, RoutedEventArgs e) { foreach (LegendaryMetadata.Rootobject eaGame in eaGamesOutput) { - if (eaGame.metadata?.customAttributes?.ThirdPartyManagedApp?.value == "Origin" || eaGame.metadata?.customAttributes?.ThirdPartyManagedApp?.value == "the EA app") + var thirdPartyManagedApp = eaGame.metadata?.customAttributes?.ThirdPartyManagedApp?.value.ToLower(); + if (thirdPartyManagedApp == "origin" || thirdPartyManagedApp == "the ea app") { - if (eaGame.metadata?.customAttributes?.ThirdPartyManagedApp?.value == "the EA app") + if (thirdPartyManagedApp == "the ea app") { eaGame.metadata.customAttributes.ThirdPartyManagedApp.value = "Origin"; var metadataFile = Path.Combine(LegendaryLauncher.ConfigPath, "metadata", eaGame.app_name + ".json");