Repository: lutris/lutris

Issue:
Lutris doesn't download DXVK versions other than the latest
### Bug description

When you switch DXVK version in the game configuration to an older version (to check if an issue the user is experiencing is a regression, for instance), DXVK doesn't actually download the older version. Instead, it keeps using the latest version that Lutris downloaded on startup.

### How to Reproduce

Steps to reproduce the behavior:
Keep Lutris open the whole time
1. Open the game's configuration
2. Add an environment variable `DXVK_HUD` with the value `version, save and close configuration.
3. Launch the game or a test app with DXVK enabled
4. Note the DXVK version displayed in the upper left corner
5. Stop the game
6. Switch DXVK version to an older one (for instance, 1.8.1L), save and close configuration.
7. Launch the app/game again with DXVK enabled
8. See that the DXVK version in the HUD doesn't match the one that was set in configuration


### Expected behavior

Lutris needs to download the older version on game startup. It previously did so but that changed in some version.

### Log output

```shell
2021-11-18 17:04:05,549: Starting Lutris 0.5.9.1
2021-11-18 17:04:07,705: Startup complete
INFO     2021-11-18 17:04:07,706 [startup.check_driver:54]:Using NVIDIA drivers 495.44 for x86_64
INFO     2021-11-18 17:04:07,706 [startup.check_driver:58]:GPU: Unknown
INFO     2021-11-18 17:04:07,706 [startup.check_driver:74]:GPU: 10DE:1B81 1458:3772 (nvidia drivers)
DEBUG    2021-11-18 17:04:07,876 [lutriswindow.update_store:451]:Showing 22 games
DEBUG    2021-11-18 17:04:14,608 [game.save:257]:Saving Test XAudio WMA (wine) with config ID test-xaudio-wma-1636769941
DEBUG    2021-11-18 17:04:14,608 [config.save:222]:Saving LutrisConfig(level=game, game_config_id=test-xaudio-wma-1636769941, runner=wine) config to /home/alex/.config/lutris/games/test-xaudio-wma-1636769941.yml
ERROR    2021-11-18 17:04:16,378 [dll_manager.enable:171]:DXVK v1.8.1L is not available locally
DEBUG    2021-11-18 17:04:16,378 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3d12.dll with VKD3D version
DEBUG    2021-11-18 17:04:16,379 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/nvapi64.dll with DXVK-NVAPI version
DEBUG    2021-11-18 17:04:16,379 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/nvml.dll with DXVK-NVAPI version
DEBUG    2021-11-18 17:04:16,379 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/nvapi.dll with DXVK-NVAPI version
DEBUG    2021-11-18 17:04:16,379 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/nvml.dll with DXVK-NVAPI version
DEBUG    2021-11-18 17:04:16,384 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/nvngx.dll with DXVK-NVAPI version
DEBUG    2021-11-18 17:04:16,384 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/_nvngx.dll with DXVK-NVAPI version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dcompiler_42.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dcompiler_43.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dcompiler_46.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dcompiler_47.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_33.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_34.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_35.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_36.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_37.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_38.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,385 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_39.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_40.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_41.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_42.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10_43.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx10.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx11_42.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx11_43.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_24.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_25.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_26.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_27.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,386 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_28.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_29.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_30.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_31.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_32.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_33.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_34.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_35.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_36.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_37.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_38.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,387 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_39.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_40.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_41.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_42.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/system32/d3dx9_43.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dcompiler_42.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dcompiler_43.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dcompiler_46.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dcompiler_47.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_33.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_34.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_35.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,388 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_36.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_37.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_38.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_39.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_40.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_41.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_42.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10_43.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx10.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx11_42.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,389 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx11_43.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_24.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_25.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_26.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_27.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_28.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_29.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_30.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_31.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_32.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,390 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_33.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_34.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_35.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_36.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_37.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_38.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_39.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_40.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_41.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_42.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,391 [dll_manager.enable_dll:131]:Replacing /home/alex/Games/test/drive_c/windows/syswow64/d3dx9_43.dll with D3D Extras version
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1="1"
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:SDL_VIDEO_FULLSCREEN_DISPLAY="off"
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/nvidia_icd.json"
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:LD_LIBRARY_PATH="/home/alex/.local/share/lutris/runners/wine/lutris-fshack-6.21-3-x86_64/lib:/home/alex/.local/share/lutris/runners/wine/lutris-fshack-6.21-3-x86_64/lib64:/usr/lib:/usr/lib32:/opt/cuda/lib64:/usr/lib/openmpi:/opt/cuda/extras/CUPTI/lib64:/opt/cuda/nvvm/lib64:/usr/lib/libfakeroot:/usr/lib64:/home/alex/.local/share/lutris/runtime/Ubuntu-18.04-i686:/home/alex/.local/share/lutris/runtime/steam/i386/lib/i386-linux-gnu:/home/alex/.local/share/lutris/runtime/steam/i386/lib:/home/alex/.local/share/lutris/runtime/steam/i386/usr/lib/i386-linux-gnu:/home/alex/.local/share/lutris/runtime/steam/i386/usr/lib:/home/alex/.local/share/lutris/runtime/Ubuntu-18.04-x86_64:/home/alex/.local/share/lutris/runtime/steam/amd64/lib/x86_64-linux-gnu:/home/alex/.local/share/lutris/runtime/steam/amd64/lib:/home/alex/.local/share/lutris/runtime/steam/amd64/usr/lib/x86_64-linux-gnu:/home/alex/.local/share/lutris/runtime/steam/amd64/usr/lib:$LD_LIBRARY_PATH"
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:#DXVK_LOG_LEVEL="debug"
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:#DXVK_SHADER_DUMP_PATH="/home/alex/shaders"
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:DXVK_HUD="version"
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:VK_INSTANCE_LAYERS="VK_LAYER_KHRONOS_validation"
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:WINEDEBUG=""
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:WINEARCH="win64"
DEBUG    2021-11-18 17:04:16,419 [command.start:139]:WINE="/home/alex/.local/share/lutris/runners/wine/lutris-fshack-6.21-3-x86_64/bin/wine"
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:GST_PLUGIN_SYSTEM_PATH_1_0="/home/alex/.local/share/lutris/runners/wine/lutris-fshack-6.21-3-x86_64/lib64/gstreamer-1.0/:/home/alex/.local/share/lutris/runners/wine/lutris-fshack-6.21-3-x86_64/lib/gstreamer-1.0/"
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:WINEPREFIX="/home/alex/Games/test"
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:WINEESYNC="1"
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:WINEFSYNC="0"
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:DXVK_NVAPIHACK="0"
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:WINEDLLOVERRIDES="d3d12,d3dcompiler_42,d3dcompiler_43,d3dcompiler_46,d3dcompiler_47,d3dx10,d3dx10_33,d3dx10_34,d3dx10_35,d3dx10_36,d3dx10_37,d3dx10_38,d3dx10_39,d3dx10_40,d3dx10_41,d3dx10_42,d3dx10_43,d3dx11_42,d3dx11_43,d3dx9_24,d3dx9_25,d3dx9_26,d3dx9_27,d3dx9_28,d3dx9_29,d3dx9_30,d3dx9_31,d3dx9_32,d3dx9_33,d3dx9_34,d3dx9_35,d3dx9_36,d3dx9_37,d3dx9_38,d3dx9_39,d3dx9_40,d3dx9_41,d3dx9_42,d3dx9_43,nvapi,nvapi64,nvml=n;winemenubuilder="
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:WINE_LARGE_ADDRESS_AWARE="1"
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:game_name="Test XAudio WMA"
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:PYTHONPATH="/usr/lib/lutris:/usr/bin:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/home/alex/.local/lib/python3.9/site-packages:/usr/lib/python3.9/site-packages"
DEBUG    2021-11-18 17:04:16,420 [command.start:139]:LUTRIS_GAME_UUID="356e7d70-fd78-40bf-a0bb-b08961d90c88"
lutris-wrapper: Test XAudio WMA
Started initial process 43770 from /home/alex/.local/share/lutris/runners/wine/lutris-fshack-6.21-3-x86_64/bin/wine /home/alex/Downloads/d3d11-triangle.exe
Start monitoring process.
esync: up and running.
002c:fixme:winediag:LdrInitializeThunk Wine TkG (staging) 6.21 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please don't report bugs about it on winehq.org and use https://github.com/Frogging-Family/wine-tkg-git/issues instead.
002c:fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
0024:fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
0104:fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
00bc:fixme:imm:ImeSetActiveContext (0x4403d0, 0): stub
00bc:fixme:imm:ImmReleaseContext (0000000000010020, 00000000004403D0): stub
0104:fixme:imm:ImeSetActiveContext (0x7a03d0, 1): stub
0104:fixme:imm:ImmReleaseContext (000000000001005C, 00000000007A03D0): stub
0104:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0104:fixme:d3d:wined3d_swapchain_init The application requested more than one back buffer, this is not properly supported.
Please configure the application to use double buffering (1 back buffer) if possible.
0108:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
0108:fixme:d3d_shader:print_glsl_info_log Info log received from GLSL shader #3:
0108:fixme:d3d_shader:print_glsl_info_log     Vertex info
0108:fixme:d3d_shader:print_glsl_info_log     -----------
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[2]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[3]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[4]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[5]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[6]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[7]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[8]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[9]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[10]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[11]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[12]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[13]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[14]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(25) : warning C7050: "vs_out[15]" might be used before being initialized
0108:fixme:d3d_shader:print_glsl_info_log     0(26) : warning C7050: "R0.yzw" might be used before being initialized
0108:fixme:d3d:wined3d_texture_gl_upload_data Not supported for multisample textures.
0108:err:d3d:wined3d_context_gl_reacquire Acquired context 0x2120050 instead of 0x2120770.
0108:err:d3d:wined3d_context_gl_reacquire Acquired context 0x2120050 instead of 0x2120770.
DEBUG    2021-11-18 17:04:19,294 [command.on_stop:193]:Process 43768 has terminated with code 0
DEBUG    2021-11-18 17:04:26,434 [game.beat:588]:Game thread stopped
WARNING  2021-11-18 17:04:26,434 [game.on_game_quit:614]:Game still running (state: running)
INFO     2021-11-18 17:04:26,434 [game.stop:599]:Stopping Test XAudio WMA (wine)
DEBUG    2021-11-18 17:04:26,434 [game.stop_game:554]:Test XAudio WMA (wine) has run for 10 seconds
DEBUG    2021-11-18 17:04:26,442 [game.on_game_quit:632]:Test XAudio WMA stopped at Чт, 18 ноя 2021 17:04:26
DEBUG    2021-11-18 17:04:26,442 [game.save:257]:Saving Test XAudio WMA (wine) with config ID test-xaudio-wma-1636769941
```


### System Information

```shell
[System]
OS:              Arch Linux rolling n/a
Arch:            x86_64
Kernel:          5.15.2-217-tkg-pds
Desktop:         GNOME
Display Server:  x11

[CPU]
Vendor:          AuthenticAMD
Model:           AMD Ryzen 7 3800X 8-Core Processor
Physical cores:  8
Logical cores:   16

[Memory]
RAM:             31.3 GB
Swap:            0.0 GB

[Graphics]
Vendor:          NVIDIA Corporation
OpenGL Renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2
OpenGL Version:  4.6.0 NVIDIA 495.44
OpenGL Core:     4.6.0 NVIDIA 495.44
OpenGL ES:       OpenGL ES 3.2 NVIDIA 495.44
Vulkan:          Supported
```


### Media (optional)

_No response_

### Checklist:

- [X] I'm not asking for support with a game, an installer script or the wine runner.
- [X] I have followed the above mentioned guides and have all the graphics and wine dependencies installed.
- [X] I have checked for existing issues that describe my problem prior to opening this one.
- [X] I understand that improperly formatted bug reports may be closed without explanation.


Discussion:

Resolving patch:
diff --git a/lutris/util/wine/dll_manager.py b/lutris/util/wine/dll_manager.py
--- a/lutris/util/wine/dll_manager.py
+++ b/lutris/util/wine/dll_manager.py
@@ -105,21 +105,25 @@ def get_download_url(self):
             return release["assets"][0]["browser_download_url"]
 
     def download(self):
-        """Download component to the local cache"""
+        """Download component to the local cache; returns True if successful but False
+        if the component could not be downloaded."""
         if self.is_available():
             logger.warning("%s already available at %s", self.component, self.path)
 
         url = self.get_download_url()
         if not url:
             logger.warning("Could not find a release for %s %s", self.component, self.version)
-            return
+            return False
         archive_path = os.path.join(self.base_dir, os.path.basename(url))
+        logger.info("Downloading %s to %s", url, archive_path)
         download_file(url, archive_path, overwrite=True)
         if not system.path_exists(archive_path) or not os.stat(archive_path).st_size:
             logger.error("Failed to download %s %s", self.component, self.version)
-            return
+            return False
+        logger.info("Extracting %s to %s", archive_path, self.path)
         extract_archive(archive_path, self.path, merge_single=True)
         os.remove(archive_path)
+        return True
 
     def enable_dll(self, system_dir, arch, dll_path):
         """Copies dlls to the appropriate destination"""
@@ -165,9 +169,11 @@ def _iter_dlls(self):
 
     def enable(self):
         """Enable Dlls for the current prefix"""
-        if not system.path_exists(self.path):
-            logger.error("%s %s is not available locally", self.component, self.version)
-            return
+        if not self.is_available():
+            if not self.download():
+                logger.error("%s %s could not be enabled because it is not available locally",
+                             self.component, self.version)
+                return
         for system_dir, arch, dll in self._iter_dlls():
             dll_path = os.path.join(self.path, arch, "%s.dll" % dll)
             self.enable_dll(system_dir, arch, dll_path)


Test patch: