namespace XFEEDToolBox.Core.Session;
/// <summary>Only non-secret launch options; authentication remains with the official launcher.</summary>
public sealed record OfficialGameLaunchPlan(IReadOnlyList<string> Arguments,IReadOnlyDictionary<string,string> Environment)
{
public static OfficialGameLaunchPlan Desktop(bool steam,bool odyssey)
{
List<string> arguments=[];
Dictionary<string,string> environment=[];
if(steam)
{
arguments.Add("/Steam");
environment["SteamAppId"]="359320";
environment["SteamGameId"]="359320";
}
arguments.AddRange(["/autorun","/autoquit","/novr","/select",odyssey?"odyssey":"horizons"]);
return new(arguments,environment);
}
}
namespace XFEEDToolBox.Core.Session;
/// <summary>Only non-secret launch options; authentication remains with the official launcher.</summary>
public sealed record OfficialGameLaunchPlan(IReadOnlyList<string> Arguments,IReadOnlyDictionary<string,string> Environment)
{
public static OfficialGameLaunchPlan Desktop(bool steam,bool odyssey)
{
List<string> arguments=[];
Dictionary<string,string> environment=[];
if(steam)
{
arguments.Add("/Steam");
environment["SteamAppId"]="359320";
environment["SteamGameId"]="359320";
}
arguments.AddRange(["/autorun","/autoquit","/novr","/select",odyssey?"odyssey":"horizons"]);
return new(arguments,environment);
}
}