fix(bionic): give each launch its own temporary file for the registry and drive rewrites

This commit is contained in:
xlulx committed 2026-11-27 16:05:25 +03:00
1 parent 1ca15d18f4
commit 9738afa692
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -314,7 +314,7 @@ steam_pid() {
awk '/^\[/ { on = index($0, "[Software\\\\Valve\\\\Steam\\\\ActiveProcess]") == 1 }
on && /^"PID"=dword:/ && $0 != "\"PID\"=dword:0000fffe" { found = 1 } END { exit !found }' "$R" || return 0
awk '/^\[/ { on = index($0, "[Software\\\\Valve\\\\Steam\\\\ActiveProcess]") == 1 }
on && /^"PID"=dword:/ { print "\"PID\"=dword:0000fffe"; next } { print }' "$R" > "$R.dd-new" && mv -f "$R.dd-new" "$R" &&
on && /^"PID"=dword:/ { print "\"PID\"=dword:0000fffe"; next } { print }' "$R" > "$R.dd-new.$$" && mv -f "$R.dd-new.$$" "$R" &&
echo "$(date +%H:%M:%S) Steam's process ID in the registry set to this tool's"
}
prefix_busy || steam_pid
+1 -1
View File
@@ -47,7 +47,7 @@ android_drives() {
case "$t" in /*) ;; *) continue ;; esac
a=$(real "$t")
[ "$a" = "$t" ] && continue
ln -sfn "$a" "$d.dd-new" && mv -fT "$d.dd-new" "$d" && echo "drive ${d##*/} -> $a"
ln -sfn "$a" "$d.dd-new.$$" && mv -fT "$d.dd-new.$$" "$d" && echo "drive ${d##*/} -> $a"
done
}