mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 06:48:09 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user