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

VolumeWiiCrypted: Decryption optimization #1969

Merged

Conversation

JosJuice
Copy link
Member

The block doesn't have to be read if it already is in m_pBuffer.

@tueidj: This should fix the problem you pointed out.

@@ -68,34 +67,40 @@ bool CVolumeWiiCrypted::Read(u64 _ReadOffset, u64 _Length, u8* _pBuffer, bool de
{
static unsigned char IV[16];

This comment was marked as off-topic.

The block doesn't have to be read if it already is in m_pBuffer.
@Tilka
Copy link
Member

Tilka commented Feb 7, 2015

lgtm (although this code could use a few documentation-only variables and symbolic constants).

@lioncash
Copy link
Member

lioncash commented Feb 8, 2015

I kinda agree with @Tilka. Maybe add a static const int (or uint depending on what you prefer) that gives 0x7C00 a name.

LGTM after that's addressed.

FioraAeterna added a commit that referenced this pull request Feb 8, 2015
VolumeWiiCrypted: Decryption optimization
@FioraAeterna FioraAeterna merged commit 451c4f3 into dolphin-emu:master Feb 8, 2015
@JosJuice JosJuice deleted the dvd-decryption-optimization branch February 8, 2015 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants