mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -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:
@ -19,6 +19,7 @@ namespace DiscIO
|
||||
{
|
||||
enum class Language;
|
||||
enum class Region;
|
||||
struct Partition;
|
||||
class IVolume;
|
||||
}
|
||||
namespace IOS
|
||||
@ -226,7 +227,7 @@ struct SConfig : NonCopyable
|
||||
u64 GetTitleID() const { return m_title_id; }
|
||||
u16 GetRevision() const { return m_revision; }
|
||||
void ResetRunningGameMetadata();
|
||||
void SetRunningGameMetadata(const DiscIO::IVolume& volume);
|
||||
void SetRunningGameMetadata(const DiscIO::IVolume& volume, const DiscIO::Partition& partition);
|
||||
void SetRunningGameMetadata(const IOS::ES::TMDReader& tmd);
|
||||
|
||||
void LoadDefaults();
|
||||
|
Reference in New Issue
Block a user