mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 08:39:00 +00:00
DiscIO: Adjust GetDataSizeType logic for NFS
This commit is contained in:
parent
a87dffe52d
commit
40a4eb3893
3 changed files with 32 additions and 14 deletions
|
@ -47,7 +47,11 @@ bool DiscScrubber::SetupScrub(const Volume* disc)
|
|||
|
||||
bool DiscScrubber::CanBlockBeScrubbed(u64 offset) const
|
||||
{
|
||||
return m_is_scrubbing && m_free_table[offset / CLUSTER_SIZE];
|
||||
if (!m_is_scrubbing)
|
||||
return false;
|
||||
|
||||
const u64 cluster_index = offset / CLUSTER_SIZE;
|
||||
return cluster_index >= m_free_table.size() || m_free_table[cluster_index];
|
||||
}
|
||||
|
||||
void DiscScrubber::MarkAsUsed(u64 offset, u64 size)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue