diff --git a/DTAConfig/DirectDrawWrapper.cs b/DTAConfig/DirectDrawWrapper.cs index bea02677f..e0cb56656 100644 --- a/DTAConfig/DirectDrawWrapper.cs +++ b/DTAConfig/DirectDrawWrapper.cs @@ -174,8 +174,11 @@ public void Apply() } else { - new FileInfo(ddrawDllTargetPath).IsReadOnly = false; - File.Delete(ddrawDllTargetPath); + if (File.Exists(ddrawDllTargetPath)) + { + new FileInfo(ddrawDllTargetPath).IsReadOnly = false; + File.Delete(ddrawDllTargetPath); + } }