summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/NANDImporter.cpp
diff options
context:
space:
mode:
authorLC <mathew1800@gmail.com>2020-11-12 02:22:21 -0500
committerGitHub <noreply@github.com>2020-11-12 02:22:21 -0500
commit93212049ac7cecd7a274a97cb5c6c860cd512aa7 (patch)
tree6974ecef89351bb71af63340cd049e36ece12497 /Source/Core/DiscIO/NANDImporter.cpp
parent9e3e325add765cb2c0143df6fd5b324c0538559e (diff)
parent689eec5304ebfcd27013717bb7c3924da570db80 (diff)
Merge pull request #9242 from lioncash/disc-panic
DiscIO: Make use of fmt-capable panic alerts
Diffstat (limited to 'Source/Core/DiscIO/NANDImporter.cpp')
-rw-r--r--Source/Core/DiscIO/NANDImporter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/NANDImporter.cpp b/Source/Core/DiscIO/NANDImporter.cpp
index 5bd651be2e..d67bbf047d 100644
--- a/Source/Core/DiscIO/NANDImporter.cpp
+++ b/Source/Core/DiscIO/NANDImporter.cpp
@@ -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