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

VolumeVerifier: Add Redump.org integration #8330

Merged
merged 3 commits into from Oct 23, 2019

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Aug 24, 2019

https://bugs.dolphin-emu.org/issues/10867

The caching behavior is not especially good right now (if you fail to connect it will cache the fail and not retry again until you restart Dolphin...), but other than that this should be ready for review.

image

Source/Core/DiscIO/VolumeVerifier.cpp Show resolved Hide resolved
Source/Core/DiscIO/VolumeVerifier.cpp Show resolved Hide resolved
Source/Core/DiscIO/VolumeVerifier.cpp Outdated Show resolved Hide resolved
@JosJuice
Copy link
Member Author

I've fixed the caching now.

std::future<std::vector<PotentialMatch>> m_future;
Result m_result;

static DownloadState m_gc_download_state;
Copy link
Member

Choose a reason for hiding this comment

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

These can be static inline to avoid the need to redefine them in the cpp file.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm getting build errors on non-Windows now. Can this be resolved without removing the inline?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've reverted the inline change for now.

@mbc07
Copy link
Contributor

mbc07 commented Aug 24, 2019

Does it work for Wii games too? AFAIK Redump.org doesn't have a public DAT for Wii ISOs...

@JosJuice
Copy link
Member Author

It currently doesn't work, but the code is written so that it automatically will start working once the datfile becomes public. Thankfully, having a datfile for Wii games is less important than for GameCube games since Wii games have a lot of verification data built in.

return 0; // Error

return c;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels a bit complicated to have this, but according to StackOverflow there isn't really a better way.

@JosJuice JosJuice merged commit 2c79c63 into dolphin-emu:master Oct 23, 2019
@JosJuice JosJuice deleted the redump-integration branch October 23, 2019 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants