diff --git a/Source/Core/DiscIO/CISOBlob.cpp b/Source/Core/DiscIO/CISOBlob.cpp index e92b3b5178..42cfffea60 100644 --- a/Source/Core/DiscIO/CISOBlob.cpp +++ b/Source/Core/DiscIO/CISOBlob.cpp @@ -77,8 +77,8 @@ bool CISOFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr) } out_ptr += bytes_to_read; - offset += bytes_to_read; - nbytes -= bytes_to_read; + offset += bytes_to_read; + nbytes -= bytes_to_read; } return true; diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp index 26c93489a8..8da2cd65d8 100644 --- a/Source/Core/DiscIO/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/NANDContentLoader.cpp @@ -240,14 +240,14 @@ bool CNANDContentLoader::Initialize(const std::string& _rName) m_Content.resize(m_numEntries); - for (u32 i=0; i> 32), (u32)m_TitleID); if (IsValid()) { - // remove tmd? + // remove TMD? for (u32 i = 0; i < m_numEntries; i++) { if (!(m_Content[i].m_Type & 0x8000)) // skip shared apps @@ -455,7 +455,7 @@ u64 CNANDContentManager::Install_WiiWAD(std::string &fileName) u64 TitleID = ContentLoader.GetTitleID(); - //copy WAD's tmd header and contents to content directory + //copy WAD's TMD header and contents to content directory std::string ContentPath(Common::GetTitleContentPath(TitleID)); std::string TMDFileName(Common::GetTMDFileName(TitleID)); diff --git a/Source/Core/DiscIO/VolumeDirectory.cpp b/Source/Core/DiscIO/VolumeDirectory.cpp index fa6b210db6..e970d27836 100644 --- a/Source/Core/DiscIO/VolumeDirectory.cpp +++ b/Source/Core/DiscIO/VolumeDirectory.cpp @@ -140,9 +140,9 @@ bool CVolumeDirectory::Read(u64 _Offset, u64 _Length, u8* _pBuffer, bool decrypt if (!reader->Read(fileOffset, fileBytes, _pBuffer)) return false; - _Length -= fileBytes; + _Length -= fileBytes; _pBuffer += fileBytes; - _Offset += fileBytes; + _Offset += fileBytes; } ++fileIter; diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp index 07c8255980..ad19645d21 100644 --- a/Source/Core/DiscIO/VolumeWad.cpp +++ b/Source/Core/DiscIO/VolumeWad.cpp @@ -22,6 +22,7 @@ CVolumeWAD::CVolumeWAD(IBlobReader* _pReader) : m_pReader(_pReader), m_offset(0), m_tmd_offset(0), m_opening_bnr_offset(0), m_hdr_size(0), m_cert_size(0), m_tick_size(0), m_tmd_size(0), m_data_size(0) { + // Source: http://wiibrew.org/wiki/WAD_files Read(0x00, 4, (u8*)&m_hdr_size); Read(0x08, 4, (u8*)&m_cert_size); Read(0x10, 4, (u8*)&m_tick_size); diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.cpp b/Source/Core/DiscIO/VolumeWiiCrypted.cpp index 6ea1a166b1..0c06efefe9 100644 --- a/Source/Core/DiscIO/VolumeWiiCrypted.cpp +++ b/Source/Core/DiscIO/VolumeWiiCrypted.cpp @@ -95,7 +95,7 @@ bool CVolumeWiiCrypted::Read(u64 _ReadOffset, u64 _Length, u8* _pBuffer, bool de memcpy(_pBuffer, &m_LastDecryptedBlock[Offset], (size_t)CopySize); // Update offsets - _Length -= CopySize; + _Length -= CopySize; _pBuffer += CopySize; _ReadOffset += CopySize; }