FS.Archive: Clean up treatment of archives and their handles
- Refactor FS::Archive internals to make Archive creation and lifetime management clearer. - Remove the "Archive as a File" hack. - Implement 64-bit Archive handles.
This commit is contained in:
parent
0931a42af0
commit
83e6e4ffec
11 changed files with 208 additions and 398 deletions
|
@ -14,10 +14,11 @@
|
|||
|
||||
namespace FileSys {
|
||||
|
||||
class Archive_RomFS;
|
||||
|
||||
class File_RomFS final : public FileBackend {
|
||||
public:
|
||||
File_RomFS();
|
||||
~File_RomFS() override;
|
||||
File_RomFS(const Archive_RomFS* archive) : archive(archive) {}
|
||||
|
||||
/**
|
||||
* Open the file
|
||||
|
@ -62,6 +63,9 @@ public:
|
|||
* @return true if the file closed correctly
|
||||
*/
|
||||
bool Close() const override;
|
||||
|
||||
private:
|
||||
const Archive_RomFS* archive;
|
||||
};
|
||||
|
||||
} // namespace FileSys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue