Alexandria.Game.GetSoftwareRegistryValue C# (CSharp) Method

GetSoftwareRegistryValue() protected method

Find a registry in the software registry directories and the Steam registry keys.
protected GetSoftwareRegistryValue ( string subpath, string folderKeyName ) : string
subpath string
folderKeyName string
return string
        protected string GetSoftwareRegistryValue(string subpath, string folderKeyName)
        {
            return (string.IsNullOrEmpty(subpath) ? null :
                    GetRegistrySoftwareValue(Registry.LocalMachine, subpath, folderKeyName)
                    ?? GetRegistrySoftwareValue(Registry.CurrentUser, subpath, folderKeyName))
                ?? (SteamApplicationId.HasValue ?
                    GetRegistrySoftwareValue(Registry.LocalMachine, SteamBase + SteamApplicationId.Value, SteamFolderKeyName) : null);
        }