proton: Add destroyprefix verb

This commit is contained in:
Andrew Eikum 2022-01-20 14:36:09 -06:00 committed by Arkadiusz Hiler
parent d6aec09c05
commit d4e3c477dd

2
proton
View File

@ -1323,6 +1323,8 @@ if __name__ == "__main__":
rc = g_session.run()
elif sys.argv[1] == "runinprefix":
rc = g_session.run_proc([g_proton.wine_bin] + sys.argv[2:])
elif sys.argv[1] == "destroyprefix":
g_compatdata.remove_tracked_files()
elif sys.argv[1] == "getcompatpath":
#linux -> windows path
path = subprocess.check_output([g_proton.wine_bin, "winepath", "-w", sys.argv[2]], env=g_session.env, stderr=g_session.log_file)