mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-24 10:20:18 +08:00
Don't stop batch installations for items that already exist.
This commit is contained in:
parent
df2ec3c9ba
commit
4b972fd747
@ -73,7 +73,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
stream << "FBI v1.3.3" << "\n";
|
stream << "FBI v1.3.4" << "\n";
|
||||||
stream << "Free Space: " << freeSpace << " bytes (" << std::fixed << std::setprecision(2) << freeSpace / 1024.0f / 1024.0f << "MB)" << "\n";
|
stream << "Free Space: " << freeSpace << " bytes (" << std::fixed << std::setprecision(2) << freeSpace / 1024.0f / 1024.0f << "MB)" << "\n";
|
||||||
stream << "Destination: " << (destination == NAND ? "NAND" : "SD") << ", Mode: " << (mode == INSTALL_CIA ? "Install CIA" : mode == DELETE_CIA ? "Delete CIA" : mode == DELETE_TITLE ? "Delete Title" : "Launch Title") << "\n";
|
stream << "Destination: " << (destination == NAND ? "NAND" : "SD") << ", Mode: " << (mode == INSTALL_CIA ? "Install CIA" : mode == DELETE_CIA ? "Delete CIA" : mode == DELETE_TITLE ? "Delete Title" : "Launch Title") << "\n";
|
||||||
stream << "L - Switch Destination, R - Switch Mode" << "\n";
|
stream << "L - Switch Destination, R - Switch Mode" << "\n";
|
||||||
@ -168,13 +168,18 @@ int main(int argc, char **argv) {
|
|||||||
AppResult ret = appInstallFile(destination, path, onProgress);
|
AppResult ret = appInstallFile(destination, path, onProgress);
|
||||||
batchInfo = "";
|
batchInfo = "";
|
||||||
if(ret != APP_SUCCESS) {
|
if(ret != APP_SUCCESS) {
|
||||||
|
Error error = platformGetError();
|
||||||
|
platformSetError(error);
|
||||||
|
|
||||||
std::stringstream resultMsg;
|
std::stringstream resultMsg;
|
||||||
resultMsg << "Install failed!" << "\n";
|
resultMsg << "Install failed!" << "\n";
|
||||||
resultMsg << fileName << "\n";
|
resultMsg << fileName << "\n";
|
||||||
resultMsg << appGetResultString(ret) << "\n";
|
resultMsg << appGetResultString(ret) << "\n";
|
||||||
uiPrompt(TOP_SCREEN, resultMsg.str(), false);
|
uiPrompt(TOP_SCREEN, resultMsg.str(), false);
|
||||||
failed = true;
|
if(error.module != MODULE_AM || error.description != DESCRIPTION_ALREADY_EXISTS) {
|
||||||
break;
|
failed = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
std::stringstream deleteStream;
|
std::stringstream deleteStream;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user