Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions proton
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,13 @@ class Proton:
f.write(new_fixup_mtime + "\n")

def missing_default_prefix(self):
'''Check if the default prefix dir is missing. Returns true if missing, false if present'''
return not os.path.isdir(self.default_pfx_dir)
'''Check if the default prefix dir is missing or incomplete. Returns true if missing, false if present'''
required_paths = (
self.default_pfx_dir + "system.reg",
self.default_pfx_dir + "drive_c/windows/system32/d3d8.dll",
self.default_pfx_dir + "drive_c/windows/syswow64/d3d8.dll",
)
return any(not os.path.isfile(path) for path in required_paths)

def make_default_prefix(self):
with self.dist_lock:
Expand Down