Fix: Where is my favorite game?

This commit is contained in:
simptomo 2019-03-19 06:36:12 +09:00
parent 0bfb91fa58
commit b66a1746f8

View file

@ -47,7 +47,7 @@ namespace Simitone.Windows.GameLocator
if (Array.Exists(softwareKey.GetSubKeyNames(), delegate (string s) { return s.Equals("Maxis", StringComparison.InvariantCultureIgnoreCase); }))
{
RegistryKey maxisKey = softwareKey.OpenSubKey("Maxis");
if (Array.Exists(maxisKey.GetSubKeyNames(), delegate (string s) { return s.Equals("The Sims Online", StringComparison.InvariantCultureIgnoreCase); }))
if (Array.Exists(maxisKey.GetSubKeyNames(), delegate (string s) { return s.Equals("The Sims", StringComparison.InvariantCultureIgnoreCase); }))
{
RegistryKey tsoKey = maxisKey.OpenSubKey("The Sims");
string installDir = (string)tsoKey.GetValue("InstallPath");