From 9f44ed7c7ebc0220de1b988bc522da60588de720 Mon Sep 17 00:00:00 2001 From: kqnori <96951674+kqnori@users.noreply.github.com> Date: Sun, 28 Jun 2026 11:54:30 +0200 Subject: [PATCH] Create necessary directories for user configuration Added directory creation for configuration and game paths. --- Program.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Program.cs b/Program.cs index dc44e53..ebace19 100644 --- a/Program.cs +++ b/Program.cs @@ -12,6 +12,29 @@ string gameexe = ""; Console.WriteLine(args[0]); string userProfilePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); +string tarGamePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/games"; + +if (!Directory.Exists(userProfilePath + "/.config/OFME-Linux")) +{ + Directory.CreateDirectory(userProfilePath + "/.config/OFME-Linux"); +} +if (!Directory.Exists(userProfilePath + "/.config/OFME-Linux/icons")) +{ + Directory.CreateDirectory(userProfilePath + "/.config/OFME-Linux/icons"); +} +if (!Directory.Exists(userProfilePath + "/.config/OFME-Linux/banners")) +{ + Directory.CreateDirectory(userProfilePath + "/.config/OFME-Linux/banners"); +} +if (!Directory.Exists(userProfilePath + "/.local/share/OnlineFix Linux Launcher/prefixes")) +{ + Directory.CreateDirectory(userProfilePath + "/.local/share/OnlineFix Linux Launcher/prefixes"); +} +if (!Directory.Exists(tarGamePath)) +{ + Directory.CreateDirectory(tarGamePath); +} +if if (args[0].EndsWith(".exe")) {