DiscIO: Make use of fmt-capable panic alerts

Migrates the DiscIO code over to fmt.
This commit is contained in:
Lioncash
2020-11-11 01:06:33 -05:00
parent ae83685b0b
commit 689eec5304
10 changed files with 49 additions and 49 deletions

View File

@ -6,7 +6,6 @@
#include <algorithm>
#include <array>
#include <cinttypes>
#include <cstring>
#include <fmt/format.h>
@ -60,7 +59,7 @@ bool NANDImporter::ReadNANDBin(const std::string& path_to_bin,
const u64 image_size = file.GetSize();
if (image_size != NAND_BIN_SIZE + NAND_KEYS_SIZE && image_size != NAND_BIN_SIZE)
{
PanicAlertT("This file does not look like a BootMii NAND backup.");
PanicAlertFmtT("This file does not look like a BootMii NAND backup.");
return false;
}
@ -273,6 +272,6 @@ void NANDImporter::ExportKeys(const std::string& nand_root)
const std::string file_path = nand_root + "/keys.bin";
File::IOFile file(file_path, "wb");
if (!file.WriteBytes(m_nand_keys.data(), NAND_KEYS_SIZE))
PanicAlertT("Unable to write to file %s", file_path.c_str());
PanicAlertFmtT("Unable to write to file {}", file_path);
}
} // namespace DiscIO