Skip to content

Commit

Permalink
Fix options cannot be saved when a renderer is not selected (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
SadPencil authored Dec 9, 2024
1 parent b47495f commit 7321031
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DTAConfig/DirectDrawWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}


Expand Down

0 comments on commit 7321031

Please sign in to comment.