mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-21 21:26:03 +01:00
parent
ccb1c5a413
commit
576a839c18
2 changed files with 15 additions and 0 deletions
|
|
@ -109,6 +109,14 @@ def filter_registry(filename):
|
|||
|
||||
os.rename(filename + '.tmp', filename)
|
||||
|
||||
#steampipe can't handle filenames with colons, so we remove them here
|
||||
#and restore them in the proton script
|
||||
def fixup_drive_links(default_pfx_dir):
|
||||
for walk_dir, dirs, files in os.walk(os.path.join(default_pfx_dir, "dosdevices")):
|
||||
for dir_ in dirs:
|
||||
if ":" in dir_:
|
||||
os.remove(os.path.join(walk_dir, dir_))
|
||||
|
||||
def make_default_pfx(default_pfx_dir, dist_dir):
|
||||
local_env = dict(os.environ)
|
||||
|
||||
|
|
@ -125,6 +133,7 @@ def make_default_pfx(default_pfx_dir, dist_dir):
|
|||
|
||||
env=local_env, check=True)
|
||||
setup_dll_symlinks(default_pfx_dir, dist_dir)
|
||||
fixup_drive_links(default_pfx_dir)
|
||||
|
||||
filter_registry(os.path.join(default_pfx_dir, 'user.reg'))
|
||||
filter_registry(os.path.join(default_pfx_dir, 'system.reg'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue