mirror of
https://github.com/skoelle/marcer-gamedvd-launcher.git
synced 2026-09-17 18:50:25 +00:00
fix bugs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user