fix(console): route data-gating and first-boot prompts through headless-aware ReadLine
Data-gating prompts (delete corrupt entities/files) and first-boot config prompts (data dir, listeners, server name, expansion, maps) now call ConsoleInputHandler.ReadLine() instead of Console.ReadLine() directly, so a headless server crashes fatal with a clear message instead of reading null.
This commit is contained in:
parent
cd62856767
commit
45ea449419
4 changed files with 8 additions and 8 deletions
|
|
@ -23,7 +23,7 @@ public static class ExpansionConfigurationPrompts
|
|||
do
|
||||
{
|
||||
Console.Write("[enter for {0}]> ", maxExpansionName);
|
||||
var input = Console.ReadLine();
|
||||
var input = ConsoleInputHandler.ReadLine();
|
||||
Expansion expansion;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(input))
|
||||
|
|
@ -77,7 +77,7 @@ public static class ExpansionConfigurationPrompts
|
|||
do
|
||||
{
|
||||
OutputSelectedMaps(expansion, selectedMaps);
|
||||
lastInput = Console.ReadLine()?.TrimEnd();
|
||||
lastInput = ConsoleInputHandler.ReadLine()?.TrimEnd();
|
||||
|
||||
if (string.IsNullOrWhiteSpace(lastInput))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue