Prepare for dumping NPDRM isos, use shared_ptr to manage lifetime of BlockDevice

This commit is contained in:
Henrik Rydgård committed 2026-03-19 13:59:04 +01:00
1 parent 4c3d982182
commit 0e55129fab
11 files changed
+17 -16

No files matched your search

+2 -2
View File
@@ -28,7 +28,7 @@ bool parseLBN(const std::string &filename, u32 *sectorStart, u32 *readSize);
class ISOFileSystem : public IFileSystem {
public:
ISOFileSystem(IHandleAllocator *_hAlloc, BlockDevice *_blockDevice);
ISOFileSystem(IHandleAllocator *_hAlloc, std::shared_ptr<BlockDevice> _blockDevice);
~ISOFileSystem();
void DoState(PointerWrap &p) override;
@@ -92,7 +92,7 @@ private:
EntryMap entries;
IHandleAllocator *hAlloc;
TreeEntry *treeroot;
BlockDevice *blockDevice;
std::shared_ptr<BlockDevice> blockDevice;
mutable u32 lastReadBlock_;
TreeEntry entireISO;