fix truncated LaunchOptions without %command% + diagnose VDF 30-line window
Some checks failed
Build DevourUnlocker / windows-cross (push) Failing after 7s
Build DevourUnlocker / linux (push) Failing after 6s
Build DevourUnlocker / standalone (push) Successful in 5s

- 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:
MiTHRAL 2026-08-24 00:34:53 -04:00
parent 388e547eda
commit 626c78c266

View file

@ -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)