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

Method requestRestore

3ds/source/MainScreen.cpp:661–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659}
660
661void MainScreen::requestRestore(size_t cellIndex)
662{
663 auto run = [this, cellIndex]() {
664 this->doRestore(hid.fullIndex(), cellIndex);
665 TransferJob::get().start();
666 };
667 if (Configuration::getInstance().confirmRestore()) {
668 currentOverlay = std::make_shared<YesNoOverlay>(*this, i18n::t("main.confirm_restore"), run, [this]() { this->removeOverlay(); });
669 }
670 else {
671 run();
672 }
673}
674
675void MainScreen::startScriptPicker(void)
676{

Callers

nothing calls this directly

Calls 6

doRestoreMethod · 0.95
getFunction · 0.85
fullIndexMethod · 0.80
confirmRestoreMethod · 0.80
removeOverlayMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected