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

(cherry picked from commit 9738afa692)
This commit is contained in:
xlulx authored and The412Banner committed 2026-11-28 15:34:31 -05:00
1 parent 6b93742e4d
commit 4cc258ef1f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -319,7 +319,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
}