some fixes

This commit is contained in:
2026-08-11 14:14:12 +02:00
parent e8c43a9d52
commit 292b642d76
4 changed files with 106 additions and 4 deletions
+5 -1
View File
@@ -93,7 +93,11 @@ namespace MarcerGameDvdLauncher
else
{
// out of cache bounds - attempt a direct write
WriteConsoleLine(row, newLine);
// Validate row against current console height to prevent ArgumentOutOfRangeException
if (row < Console.WindowHeight)
{
WriteConsoleLine(row, newLine);
}
}
}