public static bool SearchSteamRegistryInstallPath() { bool found_it = false; #if NET462 RegistryKey steamRegKey = null; try { if (ImportantMethods.Is64BitOperatingSystem()) { steamRegKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\WOW6432Node\\Valve\\Steam", RegistryKeyPermissionCheck.Default, System.Security.AccessControl.RegistryRights.ReadKey); } } catch (Exception) { } try { if (!ImportantMethods.Is64BitOperatingSystem()) { steamRegKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Valve\\Steam", RegistryKeyPermissionCheck.Default, System.Security.AccessControl.RegistryRights.ReadKey); } } catch (Exception) { } if (steamRegKey != null) { string installPath = steamRegKey.GetValue("InstallPath", string.Empty).ToString(); if (!installPath.Equals(string.Empty)) { SteamPath = installPath; found_it = true; } } #endif return(found_it); }
protected bool IsNumeric(string s, bool all) { return(ImportantMethods.IsNumeric(s, all)); }
protected bool IsNumericComma(string s) { return(ImportantMethods.IsNumericFKZ(s)); }
protected bool IsNumeric(string s) { return(ImportantMethods.IsNumericFKZ128(s)); }