Refactor program structure by adding Archives and Functions classes; introduce Varibles struct for shared state management
This commit is contained in:
@@ -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)}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user