MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / doRestore

Method doRestore

3ds/source/MainScreen.cpp:647–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647void MainScreen::doRestore(size_t fullIndex, size_t cellIndex)
648{
649 Title title;
650 TitleCatalog::get().getTitle(title, fullIndex, backupKind);
651 BackupTarget target = title.backup(backupKind);
652
653 std::u16string src = target.fullPath(cellIndex);
654 std::string dataType = target.dataTypeName();
655 std::string successMsg = i18n::t("outcome.restore_success", {nameFromCell(cellIndex)});
656 removeOverlay();
657
658 TransferJob::get().enqueueRestore(std::move(title), backupKind, std::move(src), std::move(dataType), std::move(successMsg));
659}
660
661void MainScreen::requestRestore(size_t cellIndex)
662{

Callers 1

requestRestoreMethod · 0.95

Calls 6

getFunction · 0.85
dataTypeNameMethod · 0.80
getTitleMethod · 0.45
backupMethod · 0.45
fullPathMethod · 0.45
enqueueRestoreMethod · 0.45

Tested by

no test coverage detected