From 6d36e8be05b0c7894f0c79dc1de1a9f8cb2ba80a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hambalk=C3=B3=20Bence?= Date: Wed, 6 May 2020 18:45:43 +0200 Subject: [PATCH] I am sorry --- WolvenKit.Wwise/SoundCache/Sound_Cache.cs | 2 +- WolvenKit/Forms/frmSettings.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/WolvenKit.Wwise/SoundCache/Sound_Cache.cs b/WolvenKit.Wwise/SoundCache/Sound_Cache.cs index b61aac2cb..114665828 100644 --- a/WolvenKit.Wwise/SoundCache/Sound_Cache.cs +++ b/WolvenKit.Wwise/SoundCache/Sound_Cache.cs @@ -37,7 +37,7 @@ public class SoundCache : IWitcherArchiveType public string TypeName { get { return "SoundCache"; } } public string FileName { get; set; } - public static SoundBanksInfoXML info => new SoundBanksInfoXML("SoundCache\\soundbanksinfo.xml"); + public static SoundBanksInfoXML info = new SoundBanksInfoXML("SoundCache\\soundbanksinfo.xml"); /// /// The files packed into the original soundcache. diff --git a/WolvenKit/Forms/frmSettings.cs b/WolvenKit/Forms/frmSettings.cs index 907e6f38f..5790a1c3c 100644 --- a/WolvenKit/Forms/frmSettings.cs +++ b/WolvenKit/Forms/frmSettings.cs @@ -171,6 +171,8 @@ WolvenKit can patch this with a method figured out by blobbins on the witcher 3 //wcc_lite is installed to C:\\Program files MessageBox.Show("Please restart WolvenKit as administrator. Couldn't access " + txWCC_Lite.Text, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + // Exit with error code 0 so we don't raise a windows error and the user can restart it so we have access to the files. + Environment.Exit(0); } catch (Exception exception) {