mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-10-14 19:27:09 -04:00
A staged file that replaces an existing one sits beside its old copy until its swap, so many large replaced files open at once could run a nearly full device out of space mid-update. The stream engine now admits files in order and admits a replaced file only while the planned sizes of open replaced files fit a budget (always at least one); the fetch core dispatches a chunk only once its first file is admitted. Fresh files are never held back. The manager sizes the budget from the game volume's free space after the net growth and the cache, floored at the largest replaced file, and hands over to the lookahead engine when that does not fit. A successful install also removes the empty owned staging namespace.