Skip to content

Instantly share code, notes, and snippets.

@GarnetSunset
Last active April 11, 2020 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GarnetSunset/b0fedd52a59dfaa3cf46c2dc7cd4d455 to your computer and use it in GitHub Desktop.
Save GarnetSunset/b0fedd52a59dfaa3cf46c2dc7cd4d455 to your computer and use it in GitHub Desktop.
vulkanUpdate
registryFront = "Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\Drivers]\n\"C:\\\\Windows\\\\System32\\\\DriverStore\\\\FileRepository\\\\"
registryEnd = "\\\\nv-vk64.json\"=dword:00000000\n\n"
import os, time
cwd = os.getcwd()
os.chdir("C:/Windows/System32/DriverStore/FileRepository")
all_subdirs = [d for d in os.listdir('.') if os.path.isdir(d) and "nv_dispi.inf_amd64_" in d ]
latest_subdir = max(all_subdirs, key=os.path.getmtime)
os.chdir(cwd)
regFile = open("vulkanUpdate.reg", "w")
regFile.write(registryFront+latest_subdir+registryEnd)
regFile.close()
print("Double click \"vulkanUpdate.reg\" to install the registry key")
time.sleep(5)
@AndreaFranco22
Copy link

Cattura
thisis what happens when i open vulkaninfo

@GarnetSunset
Copy link
Author

GarnetSunset commented Apr 11, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment