mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-16 07:45:33 +00:00
Merge pull request #1561 from lioncash/fs
file_sys: Remove unused variables
This commit is contained in:
commit
cdd499c261
|
@ -713,7 +713,6 @@ void KeyManager::DeriveBase() {
|
||||||
|
|
||||||
const auto sbk = GetKey(S128KeyType::SecureBoot);
|
const auto sbk = GetKey(S128KeyType::SecureBoot);
|
||||||
const auto tsec = GetKey(S128KeyType::TSEC);
|
const auto tsec = GetKey(S128KeyType::TSEC);
|
||||||
const auto master_source = GetKey(S128KeyType::Source, static_cast<u64>(SourceKeyType::Master));
|
|
||||||
|
|
||||||
for (size_t i = 0; i < revisions.size(); ++i) {
|
for (size_t i = 0; i < revisions.size(); ++i) {
|
||||||
if (!revisions[i])
|
if (!revisions[i])
|
||||||
|
|
|
@ -472,10 +472,14 @@ bool VfsRawCopy(const VirtualFile& src, const VirtualFile& dest, std::size_t blo
|
||||||
std::vector<u8> temp(std::min(block_size, src->GetSize()));
|
std::vector<u8> temp(std::min(block_size, src->GetSize()));
|
||||||
for (std::size_t i = 0; i < src->GetSize(); i += block_size) {
|
for (std::size_t i = 0; i < src->GetSize(); i += block_size) {
|
||||||
const auto read = std::min(block_size, src->GetSize() - i);
|
const auto read = std::min(block_size, src->GetSize() - i);
|
||||||
const auto block = src->Read(temp.data(), read, i);
|
|
||||||
|
|
||||||
if (dest->Write(temp.data(), read, i) != read)
|
if (src->Read(temp.data(), read, i) != read) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (dest->Write(temp.data(), read, i) != read) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue