Fixed a strange bug

This commit is contained in:
CreepyCrafter24 2019-10-12 10:38:38 +02:00
parent d8cce87b63
commit c91573cff9
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
More Icons for Apps
More apps: Laptop Sim (when done)
Use local info when building GUI (Except name/description)
Decent updater

View File

@ -76,8 +76,8 @@ namespace UpTool2
hasHandle = true;
}
string dir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\UpTool2";
if (!Directory.Exists(dir))
Directory.CreateDirectory(dir);
if (!Directory.Exists(dir + @"\Apps"))
Directory.CreateDirectory(dir + @"\Apps");
string xml = dir + @"\info.xml";
if (!File.Exists(xml))
new XElement("meta", new XElement("Version", 0)).Save(xml);