resonance 1.0.1
Loading...
Searching...
No Matches
savespacecheckermct.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
7#include "os/hxstr.h"
8
28public:
43 const std::vector<SaveFileEntry> *pFiles,
44 const HxStr &dirName,
45 Memcard *pCard,
46 int nPortSlot,
47 int nCookie);
48
51
61 virtual void OnListDir(ListDirOp *pOp);
62
68 virtual void Finish();
69
77 virtual void Execute();
78
79private:
80 // The save the measurement is for. +0x1c
81 SaveFileMCT *mOwner;
82
83 // The files the save writes. +0x20
84 const std::vector<SaveFileEntry> *mFiles;
85
86 // The save directory. +0x24
87 HxStr mDirName;
88};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Listing of one directory on a card.
Definition listdirop.h:20
MemcardTask(MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie)
Construct an idle task against one card slot.
Queue of memory-card operations, with one entry point per libmc call.
Definition memcard.h:29
Write one payload to a card, together with the save directory and its browser icon.
Definition savefilemct.h:114
virtual void Execute()
Write a diagnostic with the routine's name to cout.
virtual void OnListDir(ListDirOp *pOp)
Measure the files against the listing and report to the owner.
virtual void Finish()
Do nothing.
virtual ~SaveSpaceCheckerMCT()
SaveSpaceCheckerMCT(SaveFileMCT *pOwner, const std::vector< SaveFileEntry > *pFiles, const HxStr &dirName, Memcard *pCard, int nPortSlot, int nCookie)
Construct the check and list the save directory.