aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-08-05 21:26:02 -0300
committerflow <flowlnlnln@gmail.com>2022-09-20 18:36:09 -0300
commitd2fdbec41dd664fb6cfc66ec6c79ee9f78eb8c7b (patch)
tree162a193cebb445ad25d575ec77d3ec2f45a212bf /cmake
parent2dd372600c5e744067fda51f8ffae16fb1caa16c (diff)
downloadPrismLauncher-d2fdbec41dd664fb6cfc66ec6c79ee9f78eb8c7b.tar.gz
PrismLauncher-d2fdbec41dd664fb6cfc66ec6c79ee9f78eb8c7b.tar.bz2
PrismLauncher-d2fdbec41dd664fb6cfc66ec6c79ee9f78eb8c7b.zip
fix: move file deletion to the end of the instance update
This makes it harder for problems in the updating process to affect the current instance. Network issues, for instance, will no longer put the instance in an invalid state. Still, a possible improvement to this would be passing that logic to InstanceStaging instead, to be handled with the instance commiting directly. However, as it is now, the code would become very spaguetti-y, and given that the override operation in the commiting could also put the instance into an invalid state, it seems to me that, in order to fully error-proof this, we would need to do a copy operation on the whole instance, in order to modify the copy, and only in the end override everything an once with a rename. That also has the possibility of corrupting the instance if done without super care, however, so I think we may need to instead create an automatic backup system, with an undo command of sorts, or something like that. This doesn't seem very trivial though, so it'll probably need to wait until another PR. In the meantime, the user is advised to always backup their instances before doing this kind of action, as always. What a long commit message o.O Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions