registration: Update documentation and style

This commit is contained in:
Zach Hilman 2018-08-11 15:39:09 -04:00
parent 50ff8ec364
commit 83db3b452a
5 changed files with 69 additions and 42 deletions

View file

@ -68,6 +68,7 @@ size_t ConcatenatedVfsFile::Read(u8* data, size_t length, size_t offset) const {
}
}
// Check if the entry should be the last one. The loop above will make it end().
if (entry == files.end() && offset < files.rbegin()->first + files.rbegin()->second->GetSize())
--entry;