fix truncated LaunchOptions without %command% + diagnose VDF 30-line window
- install.sh: also fix when LaunchOptions has version=n,b but missing %command% (truncated WINEDLLOVERRIDES="version=n,b" WINEDLLOVERRIDES=" case from previous malformed VDF) - diagnose: use 30-line ahead window for Apps->1274570, show all 3 users OK
This commit is contained in:
parent
388e547eda
commit
626c78c266
1 changed files with 2 additions and 2 deletions
|
|
@ -167,8 +167,8 @@ while i < len(lines)-1:
|
|||
if end is None: i=j+1; continue
|
||||
if found_idx is not None:
|
||||
if 'version=n,b' in found and 'WINEDLLOVERRIDES' in found:
|
||||
if '\\\\\"version=n,b\\\\\"' not in found:
|
||||
lines[found_idx]='\t'*6+'\"LaunchOptions\"\t\t\"'+LAUNCH+'\"\n'; print(f'[*] {lc}: fixed escaping'); patched+=1
|
||||
if '\\\\\"version=n,b\\\\\"' not in found or '%command%' not in found:
|
||||
lines[found_idx]='\t'*6+'\"LaunchOptions\"\t\t\"'+LAUNCH+'\"\n'; print(f'[*] {lc}: fixed escaping/truncated'); patched+=1
|
||||
else:
|
||||
import re as _re
|
||||
m=_re.search(r'\"LaunchOptions\"\s+\"([^\"]*)\"', found)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue