mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
DirectoryBlob: Change the return type of Add/CheckSizeAndAdd
Only return the information that isn't already known to the caller.
This commit is contained in:
@ -63,14 +63,14 @@ class DiscContentContainer
|
||||
{
|
||||
public:
|
||||
template <typename T>
|
||||
const DiscContent& Add(u64 offset, const std::vector<T>& vector)
|
||||
void Add(u64 offset, const std::vector<T>& vector)
|
||||
{
|
||||
return Add(offset, vector.size() * sizeof(T), reinterpret_cast<const u8*>(vector.data()));
|
||||
}
|
||||
const DiscContent& Add(u64 offset, u64 size, const std::string& path);
|
||||
const DiscContent& Add(u64 offset, u64 size, const u8* data);
|
||||
const DiscContent& CheckSizeAndAdd(u64 offset, const std::string& path);
|
||||
const DiscContent& CheckSizeAndAdd(u64 offset, u64 max_size, const std::string& path);
|
||||
void Add(u64 offset, u64 size, const std::string& path);
|
||||
void Add(u64 offset, u64 size, const u8* data);
|
||||
u64 CheckSizeAndAdd(u64 offset, const std::string& path);
|
||||
u64 CheckSizeAndAdd(u64 offset, u64 max_size, const std::string& path);
|
||||
|
||||
bool Read(u64 offset, u64 length, u8* buffer) const;
|
||||
|
||||
|
Reference in New Issue
Block a user