Skip to content

Commit

Permalink
Make the default framework choice overrideable, as game specific laun…
Browse files Browse the repository at this point in the history
…chers may imply their framerworks automatically without asking.
  • Loading branch information
MeFisto94 committed Feb 28, 2024
1 parent e9956fd commit a4838b5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CommandLine/CliEntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private void BuildSubCommands()
};

var frameworkDllOption = new Option<string>("--frameworkDll",
() => "Andraste.Payload.Generic.dll",
GetDefaultFrameworkName,
"The name of the framework dll (that has to be in _this_ folder) to use")
{
IsRequired = true
Expand Down Expand Up @@ -158,6 +158,11 @@ private void BuildSubCommands()
attachCommand.SetHandler(AttachGame, nonInteractiveOption, pidOption, frameworkDllOption, modsJsonPathOption, modsFolderPathOption);
}

protected virtual string GetDefaultFrameworkName()
{
return "Andraste.Payload.Generic.dll";
}

public void InvokeSync(string commandLine, IConsole? outputConsole)
{
_rootCommand.Invoke(commandLine, outputConsole ?? new SystemConsole());
Expand Down

0 comments on commit a4838b5

Please sign in to comment.