mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
VolumeVerifier: Check hashes in Wii partitions
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@ -64,8 +66,16 @@ public:
|
||||
const Result& GetResult() const;
|
||||
|
||||
private:
|
||||
struct BlockToVerify
|
||||
{
|
||||
Partition partition;
|
||||
u64 offset;
|
||||
u64 block_index;
|
||||
};
|
||||
|
||||
void CheckPartitions();
|
||||
bool CheckPartition(const Partition& partition); // Returns false if partition should be ignored
|
||||
std::string GetPartitionName(std::optional<u32> type) const;
|
||||
void CheckCorrectlySigned(const Partition& partition, const std::string& error_text);
|
||||
bool IsDebugSigned() const;
|
||||
bool ShouldHaveChannelPartition() const;
|
||||
@ -85,6 +95,10 @@ private:
|
||||
bool m_is_datel;
|
||||
bool m_is_not_retail;
|
||||
|
||||
std::vector<BlockToVerify> m_blocks;
|
||||
size_t m_block_index = 0; // Index in m_blocks, not index in a specific partition
|
||||
std::map<Partition, size_t> m_block_errors;
|
||||
|
||||
bool m_started;
|
||||
bool m_done;
|
||||
u64 m_progress;
|
||||
|
Reference in New Issue
Block a user