Skip to content
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

Merged
merged 2 commits into from
Jan 4, 2017
Merged

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Dec 18, 2015

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 Reviewable

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.

@JosJuice
Copy link
Member

Other than those variable name nitpicks, LGTM.

@Parlane
Copy link
Member

Parlane commented Jul 14, 2016

Rebase and this will get through too.

@JosJuice
Copy link
Member

@lioncash Reminder that this needs a rebase.

@Fallcrest
Copy link

@lioncash?

@lioncash
Copy link
Member Author

@Fallcrest I know, thanks.

Allows potential multiple scrubbers to run at once. Also gets rid of the
need to explicitly clean up resources.
Copy link
Member

@JosJuice JosJuice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than CLUSTER_SIZE, LGTM again.

@@ -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.

This comment was marked as off-topic.

@JosJuice JosJuice merged commit 0eaeca9 into dolphin-emu:master Jan 4, 2017
@lioncash lioncash deleted the scrub branch January 25, 2017 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants