Refactor program structure by adding Archives and Functions classes; introduce Varibles struct for shared state management

This commit is contained in:
Kq
2026-07-03 03:34:43 +02:00
parent 719b73cfa0
commit f01c7d08f7
4 changed files with 331 additions and 260 deletions
+24
View File
@@ -0,0 +1,24 @@
namespace OnlineFixImporter
{
public struct Varibles
{
static public string gamepath { get; set; } = "";
static public string gamename { get; set; } = "";
static public string gameexe { get; set; } = "";
static public string[] args { get; } = Environment.GetCommandLineArgs();
static public string fileFromArgs { get; set; } = args[1];
static public string userProfilePath { get; } = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
static public string tarGamePath { get; } = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/games";
static public void writeOutAllVar()
{
Console.WriteLine($"gamepath: {gamepath}");
Console.WriteLine($"gamename: {gamename}");
Console.WriteLine($"gameexe: {gameexe}");
Console.WriteLine($"userProfilePath: {userProfilePath}");
Console.WriteLine($"tarGamePath: {tarGamePath}");
Console.WriteLine($"args: {string.Join(", ", args)}");
}
}
}