mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-20 06:10:08 +00:00
RomFSFile: Default constructor
This commit is contained in:
parent
b1f8c2fe67
commit
123c0886e6
@ -53,8 +53,6 @@ static bool MatchName(const u8* buffer, u32 name_length, const std::u16string& n
|
|||||||
return name == std::u16string(name_buffer.begin(), name_buffer.end());
|
return name == std::u16string(name_buffer.begin(), name_buffer.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
RomFSFile::RomFSFile() : data(nullptr), length(0) {}
|
|
||||||
|
|
||||||
RomFSFile::RomFSFile(const u8* data, u64 length) : data(data), length(length) {}
|
RomFSFile::RomFSFile(const u8* data, u64 length) : data(data), length(length) {}
|
||||||
|
|
||||||
const u8* RomFSFile::Data() const {
|
const u8* RomFSFile::Data() const {
|
||||||
|
@ -12,14 +12,14 @@ namespace RomFS {
|
|||||||
|
|
||||||
class RomFSFile {
|
class RomFSFile {
|
||||||
public:
|
public:
|
||||||
RomFSFile();
|
RomFSFile() = default;
|
||||||
RomFSFile(const u8* data, u64 length);
|
RomFSFile(const u8* data, u64 length);
|
||||||
const u8* Data() const;
|
const u8* Data() const;
|
||||||
u64 Length() const;
|
u64 Length() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const u8* data;
|
const u8* data = nullptr;
|
||||||
u64 length;
|
u64 length = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user