mirror of
https://github.com/mikage-emu/mikage-dev.git
synced 2025-01-08 14:30:59 +01:00
FS: Add stub for BOSS ExtSaveData archive
This commit is contained in:
parent
eeeb945174
commit
fb67cbc947
1 changed files with 11 additions and 2 deletions
|
@ -680,14 +680,17 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
Result DeleteFile(FakeThread&, FSContext&, uint32_t, uint32_t, IPC::StaticBuffer) override final {
|
Result DeleteFile(FakeThread&, FSContext&, uint32_t, uint32_t, IPC::StaticBuffer) override final {
|
||||||
throw std::runtime_error(fmt::format("TODO: Implement DeleteFile for archive {:#x}", archive_id));
|
return RESULT_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result DeleteDirectory(FakeThread&, FSContext&, uint32_t, bool recursive, uint32_t, IPC::StaticBuffer) override final {
|
Result DeleteDirectory(FakeThread&, FSContext&, uint32_t, bool recursive, uint32_t, IPC::StaticBuffer) override final {
|
||||||
throw std::runtime_error(fmt::format("TODO: Implement OpenDirectory for archive {:#x}", archive_id));
|
throw std::runtime_error(fmt::format("TODO: Implement OpenDirectory for archive {:#x}", archive_id));
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
|
Result RenameFile(FakeThread&, FakeFS&, uint32_t transaction, uint32_t source_path_type, IPC::StaticBuffer source_path, uint32_t target_path_type, IPC::StaticBuffer target_path) override final {
|
||||||
|
throw std::runtime_error(fmt::format("TODO: Implement RenameFile for archive {:#x}", archive_id));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/// Base class for archives that do not directly map to a PXIFS archive
|
/// Base class for archives that do not directly map to a PXIFS archive
|
||||||
class ArchiveNonPXI : public Archive, PathValidator {
|
class ArchiveNonPXI : public Archive, PathValidator {
|
||||||
|
@ -2566,6 +2569,12 @@ OpenArchive(FakeThread& thread, FSContext& context, ProcessId process_id, uint32
|
||||||
return std::make_tuple(RESULT_OK, std::move(archive));
|
return std::make_tuple(RESULT_OK, std::move(archive));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 0x12345678:
|
||||||
|
{
|
||||||
|
auto archive = std::unique_ptr<Archive>(new ArchiveDummy(thread, context, path_type, path, archive_id));
|
||||||
|
return std::make_tuple(RESULT_OK, std::move(archive));
|
||||||
|
}
|
||||||
|
|
||||||
case 0x1234567d:
|
case 0x1234567d:
|
||||||
{
|
{
|
||||||
auto archive = std::unique_ptr<Archive>(new ArchiveHostDir(GetRootDataDirectory() / "rw"));
|
auto archive = std::unique_ptr<Archive>(new ArchiveHostDir(GetRootDataDirectory() / "rw"));
|
||||||
|
|
Loading…
Reference in a new issue