major changes for create_shortcut scripts
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user