proton: Add workaround for FFXIV to enable old launcher by default.
CW-Bug-Id: #19609
This commit is contained in:
parent
71e306aaaa
commit
710257adb4
1 changed files with 22 additions and 0 deletions
22
proton
22
proton
|
@ -670,6 +670,26 @@ class CompatData:
|
||||||
os.remove(old)
|
os.remove(old)
|
||||||
os.symlink(src=link, dst=old)
|
os.symlink(src=link, dst=old)
|
||||||
|
|
||||||
|
def ffxiv_workaround(self):
|
||||||
|
if not "SteamGameId" in os.environ or \
|
||||||
|
os.environ["SteamGameId"] != "39210":
|
||||||
|
return
|
||||||
|
|
||||||
|
config_dir = self.prefix_dir + "drive_c/users/steamuser/My Documents/My Games/FINAL FANTASY XIV - A Realm Reborn/"
|
||||||
|
config_file = config_dir + "FFXIV_BOOT.cfg"
|
||||||
|
|
||||||
|
if os.path.exists(config_file):
|
||||||
|
with open(config_file, "r") as file:
|
||||||
|
config_content = file.read()
|
||||||
|
config_content = config_content.replace("Browser\t2", "Browser\t1")
|
||||||
|
with open(config_file, "w") as file:
|
||||||
|
file.write(config_content)
|
||||||
|
else:
|
||||||
|
config_content = "<FINAL FANTASY XIV Boot Config File>\n\n<Version>\nBrowser\t1\n"
|
||||||
|
makedirs(config_dir)
|
||||||
|
with open(config_file, "w") as file:
|
||||||
|
file.write(config_content)
|
||||||
|
|
||||||
def setup_prefix(self):
|
def setup_prefix(self):
|
||||||
with self.prefix_lock:
|
with self.prefix_lock:
|
||||||
if os.path.exists(self.version_file):
|
if os.path.exists(self.version_file):
|
||||||
|
@ -763,6 +783,8 @@ class CompatData:
|
||||||
#create font files symlinks
|
#create font files symlinks
|
||||||
self.create_fonts_symlinks()
|
self.create_fonts_symlinks()
|
||||||
|
|
||||||
|
self.ffxiv_workaround()
|
||||||
|
|
||||||
with open(self.tracked_files_file, "a") as tracked_files:
|
with open(self.tracked_files_file, "a") as tracked_files:
|
||||||
#copy steam files into place
|
#copy steam files into place
|
||||||
steam_dir = "drive_c/Program Files (x86)/Steam/"
|
steam_dir = "drive_c/Program Files (x86)/Steam/"
|
||||||
|
|
Loading…
Reference in a new issue