about summary refs log tree commit diff
path: root/pkgs/games/steam
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-07-17 07:33:46 +0200
committeraszlig <aszlig@nix.build>2018-07-19 06:35:18 +0200
commit6ed68d3e6d7bfd519293e772de794c3b3460773e (patch)
treecbdc1049575f10b6127e048ddfd45a0b4e7c87c6 /pkgs/games/steam
parent7aa950748713fa296ea36387e8de1ba35b4196c6 (diff)
monogame-patcher: Work around terminal width issue
If the command is not executed inside a terminal the value of
Console.WindowWidth is 0 and thus we will get an exception from
CommandLineParser:

Unhandled Exception:
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
  at System.String.Substring ...
  at CommandLine.Text.HelpText.AddOption ...
  ...

So let's initialize the parser with settings and if WindowWidth is 0 we
just add 80 as the width.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/steam')
0 files changed, 0 insertions, 0 deletions