From 45eba46c8ebd35964475b2371918676fced3f796 Mon Sep 17 00:00:00 2001 From: Lynnesbian Date: Fri, 4 Sep 2020 00:19:13 +1000 Subject: [PATCH] i dont want to talk about it --- MainWindow.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MainWindow.cs b/MainWindow.cs index 41277f2..4a04a20 100755 --- a/MainWindow.cs +++ b/MainWindow.cs @@ -133,6 +133,9 @@ namespace Buypeeb { string j = JsonSerializer.Serialize(this.settings); string p = System.IO.Path.Combine(this.location, "userdata.json"); Console.WriteLine(j); + if (!Directory.Exists(this.location)) { + Directory.CreateDirectory(this.location); + } if (!File.Exists(p)) { File.CreateText(p); }