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

DolphinWX: decompress discs to calculate MD5 hash #3047

Merged
merged 7 commits into from
Oct 12, 2015

Conversation

Tilka
Copy link
Member

@Tilka Tilka commented Sep 16, 2015

The main use case of calculating the MD5 hash is to compare it to known-good values.

@JosJuice
Copy link
Member

The idea and implementation are good in general, but I think the blob implementations for CISO and WBFS unfortunately make GetDataSize() return the file size instead of the data size. That should be fixed before this is merged.

@@ -19,7 +19,7 @@ class WbfsFileReader : public IBlobReader
public:
static WbfsFileReader* Create(const std::string& filename);

u64 GetDataSize() const override { return m_size; }
u64 GetDataSize() const override;

This comment was marked as off-topic.

@JosJuice
Copy link
Member

LGTM.

@@ -44,7 +44,7 @@ CISOFileReader* CISOFileReader::Create(const std::string& filename)

u64 CISOFileReader::GetDataSize() const
{
return GetRawSize();
return CISO_MAP_SIZE * m_block_size;

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

@phire
Copy link
Member

phire commented Sep 27, 2015

btw, this needs a rebase.

@lioncash
Copy link
Member

LGTM

Tilka added a commit that referenced this pull request Oct 12, 2015
DolphinWX: decompress discs to calculate MD5 hash
@Tilka Tilka merged commit 4c3dc0c into dolphin-emu:master Oct 12, 2015
@Tilka Tilka deleted the decompress_for_md5 branch October 12, 2015 03:21
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