mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
VolumeWiiCrypted: Replace ChangePartition with a partition parameter
By removing mutable state in VolumeWiiCrypted, this change makes partition-related code simpler. It also gets rid of other ugly things, like ISOProperties's "over 9000" loop that creates a list of partitions by trying possible combinations, and DiscScrubber's volume swapping that recreates the entire volume when it needs to change partition.
This commit is contained in:
@ -12,6 +12,7 @@
|
||||
namespace DiscIO
|
||||
{
|
||||
class IVolume;
|
||||
struct Partition;
|
||||
}
|
||||
|
||||
struct RegionSetting
|
||||
@ -46,7 +47,7 @@ public:
|
||||
|
||||
private:
|
||||
static bool DVDRead(const DiscIO::IVolume& volume, u64 dvd_offset, u32 output_address, u32 length,
|
||||
bool decrypt);
|
||||
const DiscIO::Partition& partition);
|
||||
static void RunFunction(u32 address);
|
||||
|
||||
static void UpdateDebugger_MapLoaded();
|
||||
|
Reference in New Issue
Block a user