diff --git a/src/GameFinder.StoreHandlers.EADesktop/EADesktopHandler.cs b/src/GameFinder.StoreHandlers.EADesktop/EADesktopHandler.cs index 5c8cf23d..97cd0b79 100644 --- a/src/GameFinder.StoreHandlers.EADesktop/EADesktopHandler.cs +++ b/src/GameFinder.StoreHandlers.EADesktop/EADesktopHandler.cs @@ -270,8 +270,8 @@ internal static string ParseInstallerDataFile(IFileSystem fileSystem, string bas if (gameTitle.TitleLocale.Equals("en_US", StringComparison.OrdinalIgnoreCase)) { */ - title = gameTitle.TitleText ?? ""; - break; + title = gameTitle.TitleText ?? ""; + break; //} //else { } } @@ -297,7 +297,7 @@ internal static string ParseInstallerDataFile(IFileSystem fileSystem, string bas info.InfoLocale.Equals("en_US", StringComparison.OrdinalIgnoreCase)) { */ - title = info.InfoTitle ?? ""; + title = info.InfoTitle ?? ""; //} //else { } } @@ -356,7 +356,7 @@ internal static OneOf InstallInfoToGame(IRegistry r var pub = ""; var sExeRegKey = ""; AbsolutePath executable = new(); - + if (Path.IsPathRooted(executablePath)) isInstalled = true; else if (Path.IsPathRooted(baseInstallPath)) @@ -371,9 +371,9 @@ internal static OneOf InstallInfoToGame(IRegistry r .Combine(RelativePath.FromUnsanitizedInput(installCheck.AsSpan()[(j + 1)..])); if (!install.FileExists) isInstalled = false; - + var k = sInstRegKey.IndexOf("\\Install Dir", StringComparison.Ordinal); - + if (k > 0) { title = Path.GetFileName(sInstRegKey[..k]); diff --git a/tests/GameFinder.StoreHandlers.EADesktop.Tests/ArrangeHelpers.cs b/tests/GameFinder.StoreHandlers.EADesktop.Tests/ArrangeHelpers.cs index a9dfd15e..9e4fac7b 100644 --- a/tests/GameFinder.StoreHandlers.EADesktop.Tests/ArrangeHelpers.cs +++ b/tests/GameFinder.StoreHandlers.EADesktop.Tests/ArrangeHelpers.cs @@ -66,6 +66,7 @@ private static IEnumerable SetupGames( InstallCheck: null, game.EADesktopGameId.Value, ExecutableCheck: null, + ExecutablePath: null, LocalUninstallProperties: null)) .ToList(); diff --git a/tests/GameFinder.StoreHandlers.EADesktop.Tests/Test_InstallInfoToGame.cs b/tests/GameFinder.StoreHandlers.EADesktop.Tests/Test_InstallInfoToGame.cs index 93eb4448..2643e216 100644 --- a/tests/GameFinder.StoreHandlers.EADesktop.Tests/Test_InstallInfoToGame.cs +++ b/tests/GameFinder.StoreHandlers.EADesktop.Tests/Test_InstallInfoToGame.cs @@ -19,6 +19,7 @@ public void Test_InstallInfoToGame(InMemoryFileSystem fileSystem, InMemoryRegist installCheck, softwareId, ExecutableCheck: null, + ExecutablePath: null, LocalUninstallProperties: null); var fs = new InMemoryFileSystem();