mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 09:15:45 +00:00
FS: Allow multiple instances of the same archive type to be open at once
This commit is contained in:
parent
4468625080
commit
3f1a3952d7
19 changed files with 199 additions and 159 deletions
|
@ -15,9 +15,9 @@
|
|||
namespace FileSys {
|
||||
|
||||
/// File system interface to the SDMC archive
|
||||
class Archive_SDMC final : public DiskArchive {
|
||||
class ArchiveFactory_SDMC final : public ArchiveFactory {
|
||||
public:
|
||||
Archive_SDMC(const std::string& mount_point);
|
||||
ArchiveFactory_SDMC(const std::string& mount_point);
|
||||
|
||||
/**
|
||||
* Initialize the archive.
|
||||
|
@ -26,6 +26,12 @@ public:
|
|||
bool Initialize();
|
||||
|
||||
std::string GetName() const override { return "SDMC"; }
|
||||
|
||||
ResultVal<std::unique_ptr<ArchiveBackend>> Open(const Path& path) override;
|
||||
ResultCode Format(const Path& path) override;
|
||||
|
||||
private:
|
||||
std::string sdmc_directory;
|
||||
};
|
||||
|
||||
} // namespace FileSys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue