From 8294adf8e5842e2ba220be489cce127426c18ce0 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Fri, 7 Jan 2022 08:27:25 +0100 Subject: [PATCH] fixed a crash when trying to install a profile --- AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs index ece6c1a..7e11aac 100644 --- a/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs +++ b/AM2RLauncher/AM2RLauncher/MainForm/MainForm.Methods.cs @@ -376,6 +376,8 @@ namespace AM2RLauncher HelperMethods.DirectoryCopy(dataPath + "/files_to_copy", profilePath); // HQ music + bool isHqMusicChecked = false; + Application.Instance.Invoke(new Action(() => isHqMusicChecked = (bool)hqMusicPCCheck.Checked)); if (!profile.UsesCustomMusic && (bool)hqMusicPCCheck.Checked) HelperMethods.DirectoryCopy(CrossPlatformOperations.CURRENTPATH + "/PatchData/data/HDR_HQ_in-game_music", profilePath);