emanzione / PATCH

The PATCH repository for issues tracking, wiki and shared material.
https://assetstore.unity.com/packages/tools/utilities/p-a-t-c-h-ultimate-patching-system-41417
MIT License
47 stars 7 forks source link

Version Selection #68

Open IonCO opened 10 months ago

IonCO commented 10 months ago

Since PATCH version 3.0 is close & there's a rewrite of the downloader-patcher logic, would it be possible to have a "version selection" feature before download/updating the game? Perhaps also by getting the available versions from the remote/server's build & patch indexes?

Using the given methods in PATCH version 2.6.7, I was able to get said indexes. But trying to change the download logic; from simply getting the newest one, to be able to choose versions; is quite difficult for me.

emanzione commented 10 months ago

The new API in 3.0.0 exposes some components that can help with your use case. In particular:

Also, this new behavior will be exposed externally and triggered by the user's code by passing in the target version. This means that no decisions are taken internally by the PATCH core anymore.

Do you think this is enough to cover your use case?

IonCO commented 10 months ago

@emanzione the new UpdateProcessor & 'UpdatePlan' sounds just right for my use case, thanks. Can't wait for version 3.0.0.

A bit off-topic but, would this change be brought onto Avalonia and/or WPF?

emanzione commented 10 months ago

My plan is to replace WPF with Avalonia, in this way I can maintain a single UI for each platform.