-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DiscScrubber: Turn into a class #3352
Conversation
u64 CurrentOffset = m_BlockCount * m_BlockSize; | ||
u64 i = CurrentOffset / CLUSTER_SIZE; | ||
u64 current_offset = m_block_count * m_block_size; | ||
u64 i = current_offset / CLUSTER_SIZE; | ||
|
||
size_t ReadBytes = 0; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
8224c1f
to
ade5e69
Compare
Rebase and this will get through too. |
@lioncash Reminder that this needs a rebase. |
@Fallcrest I know, thanks. |
Allows potential multiple scrubbers to run at once. Also gets rid of the need to explicitly clean up resources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than LGTM again.CLUSTER_SIZE
,
@@ -20,160 +20,91 @@ | |||
|
|||
namespace DiscIO | |||
{ | |||
namespace DiscScrubber | |||
{ | |||
#define CLUSTER_SIZE 0x8000 |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Gets things out of global lifetime scope and gets rid of the need to explicitly clean up things when done using an instance of it, since object destructors can do it themselves upon going out of scope.
This change is