From cf9ab6ddcc93cd279aaf62897095ac5b8929bab9 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Thu, 21 Mar 2019 22:23:12 +0100 Subject: DiscExtractor: Make P prefix for partition names optional Also added constants for common partition types. --- Source/Core/DiscIO/DiscExtractor.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Source/Core/DiscIO/DiscExtractor.h') diff --git a/Source/Core/DiscIO/DiscExtractor.h b/Source/Core/DiscIO/DiscExtractor.h index 3471dc700b..39af10d1a3 100644 --- a/Source/Core/DiscIO/DiscExtractor.h +++ b/Source/Core/DiscIO/DiscExtractor.h @@ -15,7 +15,11 @@ class FileInfo; struct Partition; class Volume; -std::string DirectoryNameForPartitionType(u32 partition_type); +constexpr u32 PARTITION_DATA = 0; +constexpr u32 PARTITION_UPDATE = 1; +constexpr u32 PARTITION_CHANNEL = 2; + +std::string NameForPartitionType(u32 partition_type, bool include_prefix); u64 ReadFile(const Volume& volume, const Partition& partition, const FileInfo* file_info, u8* buffer, u64 max_buffer_size, u64 offset_in_file = 0); -- cgit v1.2.3 From 84cbd5150f62bd5dd4a8d621fd0ccf7623ca4e2c Mon Sep 17 00:00:00 2001 From: JosJuice Date: Thu, 21 Mar 2019 23:04:56 +0100 Subject: Add a Verify tab to game properties --- Source/Core/DiscIO/DiscExtractor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/DiscIO/DiscExtractor.h') diff --git a/Source/Core/DiscIO/DiscExtractor.h b/Source/Core/DiscIO/DiscExtractor.h index 39af10d1a3..16b8f932fd 100644 --- a/Source/Core/DiscIO/DiscExtractor.h +++ b/Source/Core/DiscIO/DiscExtractor.h @@ -17,7 +17,8 @@ class Volume; constexpr u32 PARTITION_DATA = 0; constexpr u32 PARTITION_UPDATE = 1; -constexpr u32 PARTITION_CHANNEL = 2; +constexpr u32 PARTITION_CHANNEL = 2; // Mario Kart Wii, Wii Fit, Wii Fit Plus, Rabbids Go Home +constexpr u32 PARTITION_INSTALL = 3; // Dragon Quest X only std::string NameForPartitionType(u32 partition_type, bool include_prefix); -- cgit v1.2.3