mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-02 16:59:03 +00:00
Remove "FS" view option from CciProcess as it was never going to be used.
This commit is contained in:
@@ -14,7 +14,6 @@ ctrtool::CciProcess::CciProcess() :
|
||||
mInputStream(),
|
||||
mKeyBag(),
|
||||
mShowHeaderInfo(false),
|
||||
mShowFs(false),
|
||||
mVerbose(false),
|
||||
mVerify(false),
|
||||
mExtractPath(),
|
||||
@@ -41,10 +40,9 @@ void ctrtool::CciProcess::setKeyBag(const ctrtool::KeyBag& key_bag)
|
||||
mNcchProcess.setKeyBag(key_bag);
|
||||
}
|
||||
|
||||
void ctrtool::CciProcess::setCliOutputMode(bool show_header_info, bool show_fs)
|
||||
void ctrtool::CciProcess::setCliOutputMode(bool show_header_info)
|
||||
{
|
||||
mShowHeaderInfo = show_header_info;
|
||||
mShowFs = show_fs;
|
||||
}
|
||||
|
||||
void ctrtool::CciProcess::setVerboseMode(bool verbose)
|
||||
@@ -96,8 +94,6 @@ void ctrtool::CciProcess::process()
|
||||
verifyHeader();
|
||||
if (mShowHeaderInfo)
|
||||
printHeader();
|
||||
if (mShowFs)
|
||||
printFs();
|
||||
if (mExtractPath.isSet())
|
||||
extractFs();
|
||||
processContent();
|
||||
@@ -330,19 +326,6 @@ void ctrtool::CciProcess::printHeader()
|
||||
fmt::print(" TitleKey: {}\n", tc::cli::FormatUtil::formatBytesAsString(mHeader.card_device_info.title_key.data(), mHeader.card_device_info.title_key.size(), true, ""));
|
||||
}
|
||||
|
||||
void ctrtool::CciProcess::printFs()
|
||||
{
|
||||
tc::io::sDirectoryListing dir;
|
||||
mFsReader->getDirectoryListing(tc::io::Path("/"), dir);
|
||||
|
||||
fmt::print("[CCI Filesystem]\n");
|
||||
fmt::print(" CCI:/\n");
|
||||
for (auto itr = dir.file_list.begin(); itr != dir.file_list.end(); itr++)
|
||||
{
|
||||
fmt::print(" {}\n", *itr);
|
||||
}
|
||||
}
|
||||
|
||||
void ctrtool::CciProcess::extractFs()
|
||||
{
|
||||
tc::io::LocalFileSystem local_fs;
|
||||
|
||||
@@ -15,7 +15,7 @@ public:
|
||||
|
||||
void setInputStream(const std::shared_ptr<tc::io::IStream>& input_stream);
|
||||
void setKeyBag(const ctrtool::KeyBag& key_bag);
|
||||
void setCliOutputMode(bool show_header_info, bool show_fs);
|
||||
void setCliOutputMode(bool show_header_info);
|
||||
void setVerboseMode(bool verbose);
|
||||
void setVerifyMode(bool verify);
|
||||
void setExtractPath(const tc::io::Path& extract_path);
|
||||
@@ -34,7 +34,6 @@ private:
|
||||
std::shared_ptr<tc::io::IStream> mInputStream;
|
||||
ctrtool::KeyBag mKeyBag;
|
||||
bool mShowHeaderInfo;
|
||||
bool mShowFs;
|
||||
bool mVerbose;
|
||||
bool mVerify;
|
||||
tc::Optional<tc::io::Path> mExtractPath;
|
||||
@@ -52,7 +51,6 @@ private:
|
||||
void importHeader();
|
||||
void verifyHeader();
|
||||
void printHeader();
|
||||
void printFs();
|
||||
void extractFs();
|
||||
void processContent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user