IOFile: Make origin parameter to Seek() an enum class.

This commit is contained in:
Admiral H. Curtiss 2022-01-29 05:58:31 +01:00
commit 36cfcb530f
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
26 changed files with 116 additions and 78 deletions

View file

@ -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);