Create necessary directories for user configuration

Added directory creation for configuration and game paths.
This commit is contained in:
kqnori
2026-06-28 11:54:30 +02:00
committed by GitHub
parent 60f3c41759
commit 9f44ed7c7e
+23
View File
@@ -12,6 +12,29 @@ string gameexe = "";
Console.WriteLine(args[0]); Console.WriteLine(args[0]);
string userProfilePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); 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")) if (args[0].EndsWith(".exe"))
{ {