mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
key_manager: Remove unnecessary seek in DeriveSDSeed()
Given the file is opened a few lines above and no operations are done, other than check if the file is in a valid state, the read/write pointer will always be at the beginning of the file.
This commit is contained in:
parent
1584fb6b38
commit
82ea1cf35a
1 changed files with 0 additions and 1 deletions
|
@ -152,7 +152,6 @@ boost::optional<Key128> DeriveSDSeed() {
|
||||||
if (!sd_private.IsOpen())
|
if (!sd_private.IsOpen())
|
||||||
return boost::none;
|
return boost::none;
|
||||||
|
|
||||||
sd_private.Seek(0, SEEK_SET);
|
|
||||||
std::array<u8, 0x10> private_seed{};
|
std::array<u8, 0x10> private_seed{};
|
||||||
if (sd_private.ReadBytes(private_seed.data(), private_seed.size()) != 0x10)
|
if (sd_private.ReadBytes(private_seed.data(), private_seed.size()) != 0x10)
|
||||||
return boost::none;
|
return boost::none;
|
||||||
|
|
Loading…
Reference in a new issue