Fix backing read size check

I buggered this one up and broke all reads during the refactor, so fix
that.
This commit is contained in:
Billy Laws 2021-03-06 14:46:58 +00:00 committed by ◱ Mark
parent 6390561f0f
commit a8dafc10e0

View File

@ -73,7 +73,7 @@ namespace skyline::vfs {
if ((size - offset) < output.size())
throw exception("Trying to read past the end of a backing: 0x{:X}/0x{:X} (Offset: 0x{:X})", output.size(), size, offset);
if (ReadUnchecked(output, offset) != size)
if (ReadUnchecked(output, offset) != output.size())
throw exception("Failed to read the requested size from backing");
return size;