mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 01:10:39 +02:00
Prepare for dumping NPDRM isos, use shared_ptr to manage lifetime of BlockDevice
This commit is contained in:
1 parent
4c3d982182
commit
0e55129fab
11 files changed
+17
-16
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user