Remove existing file before symlinking

This commit is contained in:
Mathieu Comandon 2018-08-17 19:25:55 -07:00
parent 9aef288545
commit 9933156e89

View file

@ -122,6 +122,8 @@ class DXVKManager:
# Copying DXVK's version
dxvk_dll_path = os.path.join(self.dxvk_path, dxvk_arch, "%s.dll" % dll)
if os.path.exists(dxvk_dll_path):
if wine_dll_path:
os.remove(wine_dll_path)
os.symlink(dxvk_dll_path, wine_dll_path)
def disable_dxvk_dll(self, system_dir, dxvk_arch, dll):