fix double drive_c issues
This commit is contained in:
parent
3e054dd9de
commit
f2145d6678
7 changed files with 73 additions and 33 deletions
|
|
@ -95,8 +95,13 @@ function buildEnv({ game, wine }) {
|
|||
env.PROTON_LOG_DIR = path.join(DIRS.DATA, 'logs')
|
||||
fs.mkdirSync(env.PROTON_LOG_DIR, { recursive: true })
|
||||
linkPrefix(env.STEAM_COMPAT_DATA_PATH, prefixDir)
|
||||
// No silent fallback to a real directory: Proton would then set its prefix
|
||||
// up under files/data/compat/<id>/pfx, outside files/wineprefixes/ where
|
||||
// PLWL tracks it - rename, delete, the in-use guards and the LAN sync all
|
||||
// look at the launcher prefix, so its C: drive would be orphaned. Only a
|
||||
// missing path is refused; a populated one is linkPrefix's deliberate case.
|
||||
if (!fs.existsSync(env.STEAM_COMPAT_DATA_PATH)) {
|
||||
fs.mkdirSync(env.STEAM_COMPAT_DATA_PATH, { recursive: true })
|
||||
throw new Error('prefix-link-failed')
|
||||
}
|
||||
} else {
|
||||
// plain wine (system or imported build)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue