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 6 forks source link

Custom Game Path #24

Closed manutoo closed 4 years ago

manutoo commented 4 years ago

Would it be possible to have the option to change the game folder ?

For compatibility reason with my existing user base, I'd like to be able to have : "C:\MyTest" = my game ; "C:\MyTest\Launcher" = Launcher . (in that case, the patcher shouldn't delete the "Launcher" subfolder when repairing the game ;-) )

On Mac, putting it in a subfolder or in the same folder might not work (because it may require admin rights), so it would be good to be able to specify "~/Documents/MyGame" or something similar, or even the Launcher's Application.persistentDataPath folder (eg: "%LauncherData%/MyGame").

emanzione commented 4 years ago

Now the API exposes ISettings, IAdminSettings and ILauncherSettings interfaces. Also, now the API always accepts interfaces instead of concrete types. This should make it easy to implement your own settings by implementing the interfaces. The standard settings implement those interfaces too and are already included in the DLL, so you can look at the standard implementation.

The change will be included in 2.2.2 release.