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

Method doRestore

switch/source/MainScreen.cpp:877–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875}
876
877void MainScreen::doRestore(size_t rawIdx, size_t cellIndex)
878{
879 Title title;
880 TitleCatalog::get().getTitle(title, g_currentUId, rawIdx);
881 std::string name = nameFromCell(cellIndex);
882 std::string src = title.fullPath(cellIndex) + "/";
883 removeOverlay();
884
885 TransferJob::get().enqueueRestore(std::move(title), std::move(src), i18n::t("main.restore_success", {name}));
886}
887
888void MainScreen::requestRestoreSelected(void)
889{

Callers

nothing calls this directly

Calls 4

getFunction · 0.85
getTitleMethod · 0.45
fullPathMethod · 0.45
enqueueRestoreMethod · 0.45

Tested by

no test coverage detected