mirror of
https://github.com/wiiu-env/PayloadLoaderInstaller.git
synced 2024-11-27 12:14:18 +01:00
Relax the requirements for a removal a bit. It's enough to have backups
This commit is contained in:
parent
5e45460010
commit
7be164181d
@ -338,10 +338,10 @@ void ApplicationState::checkColdbootStatus() {
|
|||||||
void ApplicationState::checkRemovalPossible() {
|
void ApplicationState::checkRemovalPossible() {
|
||||||
DEBUG_FUNCTION_LINE("Check removal possible");
|
DEBUG_FUNCTION_LINE("Check removal possible");
|
||||||
|
|
||||||
this->removalPossible = this->alreadyInstalled;
|
// We can only restore if a restore of the system.xml is possible or it isn't patched at all.
|
||||||
if (this->removalPossible) {
|
this->removalPossible = !this->systemXMLAlreadyPatched || this->systemXMLRestorePossible;
|
||||||
this->removalPossible &= this->systemXMLRestorePossible || !this->systemXMLAlreadyPatched;
|
|
||||||
}
|
// And we can only install if we have a backup.
|
||||||
if (this->removalPossible) {
|
if (this->removalPossible) {
|
||||||
this->removalPossible &= InstallerService::isBackupAvailable(this->appInfo->path);
|
this->removalPossible &= InstallerService::isBackupAvailable(this->appInfo->path);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user