mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
The driver rewrites the uid for a Chinese client install (osi -> osic, s2 -> s2_cn, diablo3 -> d3cn) inside the Windows agent script, so the Kotlin side never learned which uid was actually installed. Cancelling a fresh install then fell back to the store uid (diablo3), and when the same prefix also held an international copy the Agent was asked to uninstall that copy instead. The driver now records the effective uid in .uid, emits it as BNET_UID as soon as it is known and repeats it in the DONE payload; the installer keeps it for the task. Cancel no longer guesses a uid: it uninstalls the recorded one, or leaves the registration to Battle.net and only removes the folder when it is empty or the recorded install is gone. Parts 5 and 6 still read the registrations on disk before removing anything; this part makes the earlier stacked PRs safe to merge on their own.