mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 12:35:42 +00:00
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:
1 parent
6b93742e4d
commit
4cc258ef1f
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user