summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/NANDImporter.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2022-01-29 11:59:58 +0100
committerGitHub <noreply@github.com>2022-01-29 11:59:58 +0100
commitaf5678ea758d493c419ca53c56a0ce4f8fa0ca0f (patch)
tree6e76a1fee0e79d593d95c9680d2353f9033b0ac6 /Source/Core/DiscIO/NANDImporter.cpp
parentfbe7cf675cf412af12d2f750c6162f6e4151c52c (diff)
parenta336c4386c154746ef2ea732b13872f5293666be (diff)
Merge pull request #10403 from AdmiralCurtiss/iofile-seek
Minor IOFile cleanup.
Diffstat (limited to 'Source/Core/DiscIO/NANDImporter.cpp')
-rw-r--r--Source/Core/DiscIO/NANDImporter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/NANDImporter.cpp b/Source/Core/DiscIO/NANDImporter.cpp
index ea72c3e6c4..ccd1525b62 100644
--- a/Source/Core/DiscIO/NANDImporter.cpp
+++ b/Source/Core/DiscIO/NANDImporter.cpp
@@ -71,7 +71,9 @@ bool NANDImporter::ReadNANDBin(const std::string& path_to_bin,
m_update_callback();
file.ReadBytes(&m_nand[i * NAND_BLOCK_SIZE], NAND_BLOCK_SIZE);
- file.Seek(NAND_ECC_BLOCK_SIZE, SEEK_CUR); // We don't care about the ECC blocks
+
+ // We don't care about the ECC blocks
+ file.Seek(NAND_ECC_BLOCK_SIZE, File::SeekOrigin::Current);
}
m_nand_keys.resize(NAND_KEYS_SIZE);