NANDImporter: Reduce recursion in ProcessEntry

It also simplifies the code flow, as it no longer goes backwards
through the filesystem chain.
This commit is contained in:
Starsam80
2021-12-29 17:49:16 -07:00
parent 2ccd974471
commit 6758c77c39
2 changed files with 22 additions and 28 deletions

View File

@ -55,8 +55,8 @@ private:
std::string GetPath(const NANDFSTEntry& entry, const std::string& parent_path);
std::string FormatDebugString(const NANDFSTEntry& entry);
void ProcessEntry(u16 entry_number, const std::string& parent_path);
void ProcessFile(const NANDFSTEntry& entry, const std::string& parent_path);
void ProcessDirectory(const NANDFSTEntry& entry, const std::string& parent_path);
void ProcessFile(const NANDFSTEntry& entry, const std::string& path);
void ProcessDirectory(const NANDFSTEntry& entry, const std::string& path);
void ExportKeys();
std::string m_nand_root;