Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 protected bool IsNumeric(string s, bool all)
 {
     return(ImportantMethods.IsNumeric(s, all));
 }
Ejemplo n.º 3
0
 protected bool IsNumericComma(string s)
 {
     return(ImportantMethods.IsNumericFKZ(s));
 }
Ejemplo n.º 4
0
 protected bool IsNumeric(string s)
 {
     return(ImportantMethods.IsNumericFKZ128(s));
 }