mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-13 14:57:32 +00:00

"Verify Dump" is now removed, now both hash calculation and image verification are done in one step. After a successful hash calculation, the button is replaced with a "Search on Redump.org" button that opens a web browser on Redump's search page.
21 lines
638 B
C++
21 lines
638 B
C++
#pragma once
|
|
#include "progress_callback.h"
|
|
#include "types.h"
|
|
#include <array>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
class CDImage;
|
|
|
|
namespace CDImageHasher {
|
|
|
|
using Hash = std::array<u8, 16>;
|
|
std::string HashToString(const Hash& hash);
|
|
std::optional<Hash> HashFromString(const std::string_view& str);
|
|
|
|
bool GetImageHash(CDImage* image, Hash* out_hash,
|
|
ProgressCallback* progress_callback = ProgressCallback::NullProgressCallback);
|
|
bool GetTrackHash(CDImage* image, u8 track, Hash* out_hash,
|
|
ProgressCallback* progress_callback = ProgressCallback::NullProgressCallback);
|
|
|
|
} // namespace CDImageHasher
|