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

@ -25,7 +25,7 @@ NANDImporter::~NANDImporter() = default;
void NANDImporter::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)
{
m_update_callback = std::move(update_callback);
@ -40,7 +40,7 @@ void NANDImporter::ImportNANDBin(const std::string& path_to_bin,
}
bool NANDImporter::ReadNANDBin(const std::string& path_to_bin,
std::function<std::string()> get_otp_dump_path)
const std::function<std::string()>& get_otp_dump_path)
{
constexpr size_t NAND_TOTAL_BLOCKS = 0x40000;
constexpr size_t NAND_BLOCK_SIZE = 0x800;