mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
DiscIO/DirectoryBlob: Add ContentSource that stores data locally in std::vector.
This commit is contained in:
parent
9e5bc98496
commit
f5c132580c
2 changed files with 14 additions and 1 deletions
|
@ -80,11 +80,18 @@ struct ContentFixedByte
|
|||
u8 m_byte;
|
||||
};
|
||||
|
||||
// Content chunk representing an arbitrary byte sequence that's stored within the struct itself.
|
||||
struct ContentByteVector
|
||||
{
|
||||
std::vector<u8> m_bytes;
|
||||
};
|
||||
|
||||
using ContentSource = std::variant<ContentFile, // File
|
||||
const u8*, // Memory
|
||||
ContentPartition, // Partition
|
||||
ContentVolume, // Volume
|
||||
ContentFixedByte // Fixed value padding
|
||||
ContentFixedByte, // Fixed value padding
|
||||
ContentByteVector // Byte sequence
|
||||
>;
|
||||
|
||||
struct BuilderContentSource
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue