diff --git a/Qwilight/ViewModel/MainViewModel.cs b/Qwilight/ViewModel/MainViewModel.cs index 1debac2..5e0cd63 100644 --- a/Qwilight/ViewModel/MainViewModel.cs +++ b/Qwilight/ViewModel/MainViewModel.cs @@ -3257,6 +3257,12 @@ var taehuiQwilightDateValue = taehuiQwilightDate.Value; var date = Version.Parse(taehuiQwilightDateValue.date); +#if X64 + var fileName0 = Path.Combine("x64", "iCUESDK.x64_2019.dll"); + var fileName1 = Path.Combine("x64", "MysticLight_SDK.dll"); + var fileName2 = Path.Combine("x64", "CMSDK.dll"); +#endif + var filePaths = new List(); SetFilePaths(AppContext.BaseDirectory); @@ -3264,19 +3270,16 @@ { foreach (var entryPath in Utility.GetEntry(targetEntryPath).Where(entryPath => entryPath != QwilightComponent.QwilightEntryPath)) { - var entryName = Path.GetFileName(entryPath); -#if X64 - if (entryName != "x64") -#endif - { - SetFilePaths(entryPath); - } + SetFilePaths(entryPath); } foreach (var filePath in Utility.GetFiles(targetEntryPath)) { - var fileName = Path.GetFileName(filePath); + var fileName = Path.GetRelativePath(AppContext.BaseDirectory, filePath); if (fileName != "fmod.dll" #if X64 + && fileName != fileName0 + && fileName != fileName1 + && fileName != fileName2 && fileName != "CChromaEditorLibrary64.dll" && fileName != "LogitechLedEnginesWrapper.dll" && fileName != "Microsoft.Graphics.Canvas.dll"