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

Method doBackup

3ds/source/MainScreen.cpp:631–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631void MainScreen::doBackup(size_t fullIndex, size_t cellIndex)
632{
633 Title title;
634 TitleCatalog::get().getTitle(title, fullIndex, backupKind);
635 BackupTarget target = title.backup(backupKind);
636
637 auto dst = chooseBackupDst(target, cellIndex);
638 removeOverlay();
639 if (!dst) {
640 return;
641 }
642
643 std::string dataType = target.dataTypeName();
644 TransferJob::get().enqueueBackup(std::move(title), backupKind, *dst, std::move(dataType));
645}
646
647void MainScreen::doRestore(size_t fullIndex, size_t cellIndex)
648{

Callers 1

handleEventsMethod · 0.95

Calls 6

getFunction · 0.85
chooseBackupDstFunction · 0.85
dataTypeNameMethod · 0.80
getTitleMethod · 0.45
backupMethod · 0.45
enqueueBackupMethod · 0.45

Tested by

no test coverage detected