mirror of
https://github.com/skoelle/marcer-gamedvd-launcher.git
synced 2026-09-17 18:50:25 +00:00
fix hatari exists
This commit is contained in:
@@ -11,11 +11,9 @@ namespace MarcerGameDvdLauncher
|
||||
if (string.IsNullOrWhiteSpace(exePath))
|
||||
throw new ArgumentNullException(nameof(exePath));
|
||||
|
||||
// Defensive validation: ensure the executable exists and looks like an .exe
|
||||
// Defensive validation: ensure the executable exists
|
||||
if (!File.Exists(exePath))
|
||||
throw new ArgumentException($"Hatari executable not found: {exePath}", nameof(exePath));
|
||||
if (!string.Equals(Path.GetExtension(exePath), ".exe", StringComparison.OrdinalIgnoreCase))
|
||||
throw new ArgumentException($"Hatari executable must be an .exe file: {exePath}", nameof(exePath));
|
||||
|
||||
_exePath = exePath;
|
||||
_cfgPath = cfgPath;
|
||||
|
||||
Reference in New Issue
Block a user