Artemis.Utilities.DataReaders.DllManager.RestoreLogitechDll C# (CSharp) Method

RestoreLogitechDll() public static method

public static RestoreLogitechDll ( ) : bool
return bool
        public static bool RestoreLogitechDll()
        {
            if (!File.Exists(LogitechPath + @"\LogitechLed.dll") || !File.Exists(LogitechPath + @"\artemis.txt"))
                return false;

            try
            {
                // Get rid of our own DLL
                File.Delete(LogitechPath + @"\LogitechLed.dll");

                // Restore the backup
                if (File.Exists(LogitechPath + @"\LogitechLed.dll.bak"))
                    File.Copy(LogitechPath + @"\LogitechLed.dll.bak", LogitechPath + @"\LogitechLed.dll");

                File.Delete(LogitechPath + @"\artemis.txt");

                return true;
            }
            catch (Exception)
            {
                return false;
            }
        }