MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / ChangePartitionNAND

Method ChangePartitionNAND

Goldleaf/source/ui/ui_BrowserLayout.cpp:669–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667 }
668
669 void BrowserLayout::ChangePartitionNAND(const fs::Partition partition, const bool update_contents) {
670 fs::Explorer *exp = nullptr;
671 switch(partition) {
672 case fs::Partition::PRODINFOF: {
673 exp = fs::GetPRODINFOFExplorer();
674 break;
675 }
676 case fs::Partition::NANDSafe: {
677 exp = fs::GetNANDSafeExplorer();
678 break;
679 }
680 case fs::Partition::NANDUser: {
681 exp = fs::GetNANDUserExplorer();
682 break;
683 }
684 case fs::Partition::NANDSystem: {
685 exp = fs::GetNANDSystemExplorer();
686 break;
687 }
688 default: {
689 return;
690 }
691 }
692 this->ChangePartitionExplorer(exp, update_contents);
693 }
694
695 void BrowserLayout::ChangePartitionRemotePcDrive(const std::string &mount_name, const bool update_contents) {
696 this->ChangePartitionExplorer(fs::GetRemotePCExplorer(mount_name), update_contents);

Callers 1

Calls 5

GetPRODINFOFExplorerFunction · 0.85
GetNANDSafeExplorerFunction · 0.85
GetNANDUserExplorerFunction · 0.85
GetNANDSystemExplorerFunction · 0.85

Tested by

no test coverage detected