From 3a6f8afa0b09fb318c252ec482faa61614beb738 Mon Sep 17 00:00:00 2001 From: Brian Lima Date: Sun, 4 Sep 2022 20:36:30 -0300 Subject: [PATCH] Move transient icon directory to %appdata% --- UWPHook/GamesWindow.xaml.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index 55a192a..9043b43 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -393,7 +393,7 @@ namespace UWPHook { foreach (var app in selected_apps) { - string icon = PersistAppIcon(app, exeDir); + string icon = PersistAppIcon(app); VDFEntry newApp = new VDFEntry() { @@ -480,11 +480,11 @@ namespace UWPHook /// Due to some apps changing the icon location when they update, which causes icons to be "lost" /// /// App to copy the icon from - /// Base path to copy the app to /// - private string PersistAppIcon(AppEntry app, string path) + private string PersistAppIcon(AppEntry app) { - string icons_path = path + @"\\icons\\"; + string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); + string icons_path = path + @"\\Briano\\UWPHook\\icons\\"; if (!Directory.Exists(icons_path)) {