mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
DiscIO: Add a Volume::ReadSwappedAndShifted function
This is a fairly common operation, so let's make a utility function for it to cut down on code duplication.
This commit is contained in:
parent
a8e4a3c915
commit
5e3c98af1d
7 changed files with 42 additions and 39 deletions
|
@ -64,6 +64,8 @@ public:
|
|||
static constexpr unsigned int BLOCK_DATA_SIZE = 0x7C00;
|
||||
static constexpr unsigned int BLOCK_TOTAL_SIZE = BLOCK_HEADER_SIZE + BLOCK_DATA_SIZE;
|
||||
|
||||
protected:
|
||||
u32 GetOffsetShift() const override { return 2; }
|
||||
private:
|
||||
struct PartitionDetails
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue