// Copyright 2021 Dolphin Emulator Project // Licensed under GPLv2+ // Refer to the license.txt file included. #pragma once #include #include #include "Common/CommonTypes.h" namespace DiscIO { struct Partition; class Volume; constexpr u32 PARTITION_DATA = 0; constexpr u32 PARTITION_UPDATE = 1; 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); std::optional GetApploaderSize(const Volume& volume, const Partition& partition); std::optional GetBootDOLOffset(const Volume& volume, const Partition& partition); std::optional GetBootDOLSize(const Volume& volume, const Partition& partition, u64 dol_offset); std::optional GetFSTOffset(const Volume& volume, const Partition& partition); std::optional GetFSTSize(const Volume& volume, const Partition& partition); }