diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-18 23:50:01 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-11-28 00:01:46 -0500 |
commit | b349e956c6bb4608b4e158282700bf39e0072817 (patch) | |
tree | 2051e8b586b7a9b4fb1439a770936317f87fdf5e /src/SMAPI/Framework/Logging/LogManager.cs | |
parent | 3c6549db3e2716b1ebc1f2f9e970fb0dc15613eb (diff) | |
download | SMAPI-b349e956c6bb4608b4e158282700bf39e0072817.tar.gz SMAPI-b349e956c6bb4608b4e158282700bf39e0072817.tar.bz2 SMAPI-b349e956c6bb4608b4e158282700bf39e0072817.zip |
remove handling for exception no longer thrown by the game
Diffstat (limited to 'src/SMAPI/Framework/Logging/LogManager.cs')
-rw-r--r-- | src/SMAPI/Framework/Logging/LogManager.cs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/SMAPI/Framework/Logging/LogManager.cs b/src/SMAPI/Framework/Logging/LogManager.cs index abcb2f64..dbcf8934 100644 --- a/src/SMAPI/Framework/Logging/LogManager.cs +++ b/src/SMAPI/Framework/Logging/LogManager.cs @@ -252,18 +252,6 @@ namespace StardewModdingAPI.Framework.Logging { switch (exception) { - // audio crash - //case InvalidOperationException ex when ex.Source == "Microsoft.Xna.Framework.Xact" && ex.StackTrace.Contains("Microsoft.Xna.Framework.Audio.AudioEngine..ctor"): - // this.Monitor.Log("The game couldn't load audio. Do you have speakers or headphones plugged in?", LogLevel.Error); - // this.Monitor.Log($"Technical details: {ex.GetLogSummary()}"); - // break; - - // missing content folder exception - case FileNotFoundException ex when ex.Message == "Couldn't find file 'C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Stardew Valley\\Content\\XACT\\FarmerSounds.xgs'.": // path in error is hardcoded regardless of install path - this.Monitor.Log("The game can't find its Content\\XACT\\FarmerSounds.xgs file. You can usually fix this by resetting your content files (see https://smapi.io/troubleshoot#reset-content ), or by uninstalling and reinstalling the game.", LogLevel.Error); - this.Monitor.Log($"Technical details: {ex.GetLogSummary()}"); - break; - // path too long exception case PathTooLongException _: { |