mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 06:39:14 +01:00
DiscScrubber: Replace unused blocks with 0x00 instead of 0xFF
This commit is contained in:
parent
3f03e2d5fe
commit
31226b8503
@ -132,7 +132,7 @@ size_t GetNextBlock(File::IOFile& in, u8* buffer)
|
|||||||
if (m_isScrubbing && m_FreeTable[i])
|
if (m_isScrubbing && m_FreeTable[i])
|
||||||
{
|
{
|
||||||
DEBUG_LOG(DISCIO, "Freeing 0x%016" PRIx64, CurrentOffset);
|
DEBUG_LOG(DISCIO, "Freeing 0x%016" PRIx64, CurrentOffset);
|
||||||
std::fill(buffer, buffer + m_BlockSize, 0xFF);
|
std::fill(buffer, buffer + m_BlockSize, 0x00);
|
||||||
in.Seek(m_BlockSize, SEEK_CUR);
|
in.Seek(m_BlockSize, SEEK_CUR);
|
||||||
ReadBytes = m_BlockSize;
|
ReadBytes = m_BlockSize;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user