From a4c5d978283aa8f4e68dc7418695b3beba02d727 Mon Sep 17 00:00:00 2001 From: TheSwerik Date: Fri, 8 May 2020 11:57:24 +0200 Subject: [PATCH 1/5] something works --- Inno Config.iss | 2 +- RedEye.Backend/src/Util/Config.cs | 5 +++++ RedEye.UI/src/MainWindow.xaml | 7 +++++-- RedEye.UI/src/MainWindow.xaml.cs | 29 +++++++++++++++++++++++++++++ appveyor.yml | 2 +- assets/config.csv | 7 ++++--- 6 files changed, 45 insertions(+), 7 deletions(-) diff --git a/Inno Config.iss b/Inno Config.iss index 02478f52..372a7eae 100644 --- a/Inno Config.iss +++ b/Inno Config.iss @@ -1,6 +1,6 @@ ; Variables: #define MyAppName "RedEye" -#define MyAppVersion "1.2.0" +#define MyAppVersion "1.3.0" #define MyAppPublisher "Swerik" #define MyAppURL "https://github.com/TheSwerik/RedEye" #define MyAppExeName "RedEye.exe" diff --git a/RedEye.Backend/src/Util/Config.cs b/RedEye.Backend/src/Util/Config.cs index e4e73351..e5740a59 100644 --- a/RedEye.Backend/src/Util/Config.cs +++ b/RedEye.Backend/src/Util/Config.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using Emgu.CV.Cuda; using Microsoft.VisualBasic.FileIO; @@ -23,6 +24,10 @@ static Config() } IsCudaEnabled = GetBool("Cuda") && CudaInvoke.HasCuda; + + if (Get("ScreenshotLocation").ToLowerInvariant().Contains("default")) + Set("ScreenshotLocation", Environment.GetFolderPath(Environment.SpecialFolder.MyPictures) + @"\RedEye Screenshots"); + Directory.CreateDirectory(Get("ScreenshotLocation")); } public static void Set(string setting, string value) diff --git a/RedEye.UI/src/MainWindow.xaml b/RedEye.UI/src/MainWindow.xaml index e0a45f06..88c8d4eb 100644 --- a/RedEye.UI/src/MainWindow.xaml +++ b/RedEye.UI/src/MainWindow.xaml @@ -18,6 +18,7 @@ + @@ -33,12 +34,14 @@ - +