From fef060f09aea8cbb1b98bd0c69bf67e27b66e08e Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 18 Nov 2020 11:42:15 -0500 Subject: [PATCH] SoundEffects.Load(): go back to returning void instead of bool --- Shared/SoundEffects.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Shared/SoundEffects.cs b/Shared/SoundEffects.cs index 0fda2ba..c3917cc 100644 --- a/Shared/SoundEffects.cs +++ b/Shared/SoundEffects.cs @@ -8,7 +8,7 @@ namespace SemiColinGames { public static SoundEffect[] SwordSwings = new SoundEffect[14]; // Returns true if all SoundEffects were successfully loaded. - public static bool Load(ContentManager content) { + public static void Load(ContentManager content) { try { IntroMusic = content.Load("music/playonloop/smash_bros_short"); SwordSwings[0] = content.Load("sfx/zs_whoosh_30568"); @@ -25,9 +25,8 @@ namespace SemiColinGames { SwordSwings[11] = content.Load("sfx/zs_whoosh_30579"); SwordSwings[12] = content.Load("sfx/zs_whoosh_30580"); SwordSwings[13] = content.Load("sfx/zs_whoosh_30581"); - return true; } catch (NoAudioHardwareException) { - return false; + Debug.WriteLine("SoundEffects.Load(): NoAudioHardwareException"); } } }