Skip to content

Commit

Permalink
#67
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye116477 committed May 17, 2024
1 parent 74268c6 commit eda8bd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/LegendaryEaActivate.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit eda8bd7

Please sign in to comment.