mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2026-04-21 06:03:52 +00:00
Handle legitimate exception for "expected" failures
This commit is contained in:
parent
ec0a84283b
commit
8cc45ed6b4
4 changed files with 24 additions and 2 deletions
|
|
@ -340,6 +340,12 @@ namespace SteamController.Helpers
|
|||
File.Copy(configPath + ".orig", configPath, true);
|
||||
return true;
|
||||
}
|
||||
catch (FileNotFoundException e)
|
||||
{
|
||||
// File was not found (which is valid as it might be before first start of the application)
|
||||
Log.DebugException("STEAM", e);
|
||||
return false;
|
||||
}
|
||||
catch (DirectoryNotFoundException)
|
||||
{
|
||||
// Steam was installed, but got removed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue