Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
TuTAH1 committed Apr 23, 2023
1 parent e57123d commit a54ae65
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Forms/SettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,20 @@ private void slIconRealism_Scroll(object sender, EventArgs e)
{
picRealismLevel.BackgroundImage = GetImage("Settings", "RealismLevelImage", "Max"); //: add meme image left to that slider

if (File.Exists(@"images\Settings\Max\Horizon\Heart.mp3"))
if (!File.Exists(@"images\Settings\Max\Horizon\Heart.mp3"))
File.Copy(@"images\Settings\Max\Horizon\Heart.png", @"images\Settings\Max\Horizon\Heart.mp3");
Egg = new WindowsMediaPlayer();
Egg.URL = @"images\Settings\Max\Horizon\Heart.mp3";
Egg = new WindowsMediaPlayer
{
URL = @"images\Settings\Max\Horizon\Heart.mp3"
};
Egg.controls.play();//: play BMttH: can you break my heart
}
catch (Exception exception)
{
Egg?.controls.stop();
if(File.Exists(@"images\Settings\Max\Horizon\Heart.mp3"))
File.Delete(@"images\Settings\Max\Horizon\Heart.mp3");
Egg.close();
Egg?.close();
Egg = null;
exception.ShowMessageBox(LocalizationStrings.SettingsForm_RealismLevel_Max_Error);
}
Expand All @@ -269,7 +271,7 @@ private void slIconRealism_Scroll(object sender, EventArgs e)
File.Delete(@"images\Settings\Max\Horizon\Heart.mp3");

Egg?.controls.stop();
Egg.close();
Egg?.close();
Egg = null;
}
Settings.Default.Save();
Expand Down

0 comments on commit a54ae65

Please sign in to comment.