major changes for create_shortcut scripts

This commit is contained in:
Castro-Fidel
2020-06-09 23:36:28 +03:00
parent bed2eba932
commit 3fe80df33b
4 changed files with 44 additions and 22 deletions

View File

@ -154,6 +154,13 @@ class CompatData:
def upgrade_pfx(self, old_ver):
if old_ver == CURRENT_PREFIX_VERSION:
return
#replace broken .NET installations with wine-mono support
if os.path.exists(self.prefix_dir + "/drive_c/windows/Microsoft.NET/NETFXRepair.exe") and \
file_is_wine_fake_dll(self.prefix_dir + "/drive_c/windows/system32/mscoree.dll"):
log("Broken .NET installation detected, switching to wine-mono.")
#deleting this directory allows wine-mono to work
shutil.rmtree(self.prefix_dir + "/drive_c/windows/Microsoft.NET")
def copy_pfx(self):
with open(self.tracked_files_file, "w") as tracked_files:
@ -348,6 +355,8 @@ class Session:
self.check_environment("PW_OLD_GL_STRING", "oldglstr")
self.check_environment("PW_USE_SECCOMP", "seccomp")
self.check_environment("PW_NO_VR", "novrclient")
self.check_environment("PW_NO_WINEMFPLAY", "nomfplay")
self.check_environment("PW_NO_WRITE_WATCH", "nowritewatch")
if not "noesync" in self.compat_config:
self.env["WINEESYNC"] = "1"
@ -387,6 +396,12 @@ class Session:
self.dlloverrides["vrclient_x64"] = ""
self.dlloverrides["openvr_api_dxvk"] = ""
if "nomfplay" in self.compat_config:
self.dlloverrides["mfplay"] = "n"
if "nowritewatch" in self.compat_config:
self.env["WINE_DISABLE_WRITE_WATCH"] = "1"
s = ""
for dll in self.dlloverrides:
setting = self.dlloverrides[dll]