From 1eecf58cd0a428fd6523d73bc8944101b2c53c61 Mon Sep 17 00:00:00 2001 From: Alessandro Proto Date: Fri, 20 Jan 2023 09:37:53 +0100 Subject: [PATCH] Bugfix appdata directory not being created --- Capy64/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Capy64/Program.cs b/Capy64/Program.cs index cbdf657..05b8b92 100644 --- a/Capy64/Program.cs +++ b/Capy64/Program.cs @@ -9,6 +9,10 @@ using IHost host = Host.CreateDefaultBuilder(args) .ConfigureAppConfiguration((context, c) => { var settingsPath = Path.Combine(Capy64.Capy64.AppDataPath, "settings.json"); + if(!Directory.Exists(Capy64.Capy64.AppDataPath)) + { + Directory.CreateDirectory(Capy64.Capy64.AppDataPath); + } if (!File.Exists(settingsPath)) { File.Copy("Assets/default.json", settingsPath);