From 29e65e6f0a100bbbc45a511933ec3fad0e514ae5 Mon Sep 17 00:00:00 2001 From: Jakob Date: Sat, 8 May 2021 17:29:21 +0200 Subject: [PATCH] Add support for Studio without automatic detection --- EnvyUpdate/Debug.cs | 5 ++- EnvyUpdate/MainWindow.xaml | 16 ++++--- EnvyUpdate/MainWindow.xaml.cs | 49 ++++++++++++++++++--- EnvyUpdate/Properties/Resources.Designer.cs | 9 ++++ EnvyUpdate/Properties/Resources.de.resx | 3 ++ EnvyUpdate/Properties/Resources.resx | 3 ++ EnvyUpdate/Util.cs | 13 +++++- 7 files changed, 84 insertions(+), 14 deletions(-) diff --git a/EnvyUpdate/Debug.cs b/EnvyUpdate/Debug.cs index 0ce50c9..5df7a21 100644 --- a/EnvyUpdate/Debug.cs +++ b/EnvyUpdate/Debug.cs @@ -6,11 +6,10 @@ namespace EnvyUpdate { class Debug { - readonly static string debugFilePath = GlobalVars.exepath + "debug.txt"; public static int LoadFakeIDs(string idType) { /* - * Usage: Supply /debug flag to exe. Imitates a GTX 1080ti on Win10 x64 non-dch. + * Usage: Supply /debug flag to exe. Imitates a GTX 1080ti on Win10 x64 non-dch Game Ready Driver. */ switch (idType) { @@ -22,6 +21,8 @@ namespace EnvyUpdate return 57; case "dtcid": return 0; + case "dtid": + return 1; default: return -1; } diff --git a/EnvyUpdate/MainWindow.xaml b/EnvyUpdate/MainWindow.xaml index f5e1ec4..87ba0ab 100644 --- a/EnvyUpdate/MainWindow.xaml +++ b/EnvyUpdate/MainWindow.xaml @@ -7,19 +7,23 @@ xmlns:p="clr-namespace:EnvyUpdate.Properties" xmlns:tb="http://www.hardcodet.net/taskbar" mc:Ignorable="d" - Title="EnvyUpdate" Height="160" Width="290" Icon="icon.ico" StateChanged="Window_StateChanged" Closing="Window_Closing" ResizeMode="CanMinimize"> + Title="EnvyUpdate" Height="250" Width="300" Icon="icon.ico" StateChanged="Window_StateChanged" Closing="Window_Closing" ResizeMode="CanMinimize"> - - + +