Catch DXVK symlink creation failures

This commit is contained in:
Mathieu Comandon 2020-11-02 23:33:51 -08:00
parent 157ab4a3ed
commit 20d1f85094

View file

@ -182,7 +182,10 @@ class DXVKManager:
shutil.move(wine_dll_path, wine_dll_path + ".orig")
else:
os.remove(wine_dll_path)
os.symlink(dxvk_dll_path, wine_dll_path)
try:
os.symlink(dxvk_dll_path, wine_dll_path)
except OSError:
logger.error("Failed linking %s to %s", dxvk_dll_path, wine_dll_path)
else:
self.disable_dxvk_dll(system_dir, dxvk_arch, dll)