This commit is contained in:
2026-08-11 20:11:23 +02:00
parent 4c7592582c
commit bc9bb8e862
4 changed files with 27 additions and 48 deletions
@@ -163,6 +163,13 @@ namespace MarcerGameDvdLauncher
if (!isDirectory && _gameEntries.Count > 0 && _gameEntries[navigationController.SelectedIndex].Kind == EntryKind.Zip)
{
string zipToLaunch = _gameEntries[navigationController.SelectedIndex].InPatch ? _gameEntries[navigationController.SelectedIndex].PatchPath : _gameEntries[navigationController.SelectedIndex].RootPath;
if (!File.Exists(zipToLaunch))
{
errorService.ShowError($"ZIP file not found: {zipToLaunch}");
DrawMenu(availableLines);
ProgramHelpers.FlushInputBuffer();
break;
}
try
{
hatariLauncher.Launch(zipToLaunch);
@@ -120,5 +120,11 @@ namespace MarcerGameDvdLauncher
}
if (waitForKey) Console.ReadKey(intercept: true);
}
// Convenience overload: flate argument list instead of explicit array.
public static void ShowConsoleMessage(params string[] lines)
{
ShowConsoleMessage(lines, ConsoleColor.Gray, clear: true, waitForKey: true);
}
}
}