From 82fc1eea41218c93e6d72e0983b0de9d1321c3a6 Mon Sep 17 00:00:00 2001 From: Ammaar Limbada Date: Sun, 25 Dec 2022 17:52:05 +0000 Subject: [PATCH] Create temp grid directory if it doesn't exist --- UWPHook/GamesWindow.xaml.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index 3bca14b..2309e65 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -430,6 +430,12 @@ namespace UWPHook await Task.Run(() => { string tmpGridDirectory = Path.GetTempPath() + "UWPHook\\tmp_grid\\"; + + if (!Directory.Exists(tmpGridDirectory)) + { + Directory.CreateDirectory(tmpGridDirectory); + } + string[] images = Directory.GetFiles(tmpGridDirectory); UInt64 gameId = GenerateSteamGridAppId(app.Name, exePath);