From 8ffacf4f7679c362b206c8a85966dc4741296f74 Mon Sep 17 00:00:00 2001 From: XyLe-GBP Date: Tue, 12 Apr 2022 14:50:52 +0900 Subject: [PATCH] Path changed with addition of Real-CUGAN engine --- Program.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 3bf5d50..7de5221 100644 --- a/Program.cs +++ b/Program.cs @@ -32,12 +32,17 @@ static void Main() MessageBox.Show("Multiple launch of applications is not allowed.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } - if (!File.Exists(Directory.GetCurrentDirectory() + @"\res\waifu2x\waifu2x-ncnn-vulkan.exe")) + if (!File.Exists(Directory.GetCurrentDirectory() + @"\res\engines\waifu2x\waifu2x-ncnn-vulkan.exe")) { MessageBox.Show("The required file 'waifu2x-ncnn-vulkan.exe' does not exist.\nClose the application.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } - if (!File.Exists(Directory.GetCurrentDirectory() + @"\res\realesrgan\realesrgan-ncnn-vulkan.exe")) + if (!File.Exists(Directory.GetCurrentDirectory() + @"\res\engines\realcugan\realcugan-ncnn-vulkan.exe")) + { + MessageBox.Show("The required file 'realcugan-ncnn-vulkan.exe' does not exist.\nClose the application.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + return; + } + if (!File.Exists(Directory.GetCurrentDirectory() + @"\res\engines\realesrgan\realesrgan-ncnn-vulkan.exe")) { MessageBox.Show("The required file 'realesrgan-ncnn-vulkan.exe' does not exist.\nClose the application.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); return;