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

Scrubbing improvements #3986

Merged
merged 2 commits into from Jul 12, 2016
Merged

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Jul 7, 2016

@lioncash
Copy link
Member

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.


Source/Core/DiscIO/DiscScrubber.cpp, line 180 [r1] (raw file):

  u64 end_offset = offset + size;
  // Calculate the start of the first cluster
  offset = offset / 0x7c00 * CLUSTER_SIZE + partition_data_offset;

This should probably be its own variable, like u64 first_cluster_offset = ... or some other better name instead of reusing a variable with an ambiguous name. (protip: if you need to explain what you are doing in a comment, rather than explaining why, chances are it's dodgy).


Comments from Reviewable

@JosJuice
Copy link
Member Author

Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion.


Source/Core/DiscIO/DiscScrubber.cpp, line 180 [r1] (raw file):

Previously, lioncash (Mat M.) wrote…

This should probably be its own variable, like u64 first_cluster_offset = ... or some other better name instead of reusing a variable with an ambiguous name. (protip: if you need to explain what you are doing in a comment, rather than explaining why, chances are it's dodgy).

Done.

Comments from Reviewable

@delroth delroth merged commit f59b8b7 into dolphin-emu:master Jul 12, 2016
@JosJuice JosJuice deleted the scrubbing-improvements branch August 14, 2016 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants