DiscIO: Pass parameters by constant reference

This commit is contained in:
Dr. Dystopia
2025-04-19 22:40:03 +02:00
parent 1ae0b23265
commit 07ad189b4f
9 changed files with 17 additions and 15 deletions

View File

@ -27,7 +27,7 @@ public:
// If the associated OTP/SEEPROM dump (keys.bin) is not included in the image,
// get_otp_dump_path will be called to get a path to it.
void ImportNANDBin(const std::string& path_to_bin, std::function<void()> update_callback,
std::function<std::string()> get_otp_dump_path);
const std::function<std::string()>& get_otp_dump_path);
bool ExtractCertificates();
enum class Type
@ -64,7 +64,8 @@ public:
#pragma pack(pop)
private:
bool ReadNANDBin(const std::string& path_to_bin, std::function<std::string()> get_otp_dump_path);
bool ReadNANDBin(const std::string& path_to_bin,
const std::function<std::string()>& get_otp_dump_path);
bool FindSuperblock();
std::string GetPath(const NANDFSTEntry& entry, const std::string& parent_path);
std::string FormatDebugString(const NANDFSTEntry& entry);