resonance 1.0.1
Loading...
Searching...
No Matches
getallconnectstatesmct.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
7
9constexpr int kMemcardMaxEnumeratedSlots = 8;
10
29public:
43 Memcard *pCard,
44 int nCookie,
45 std::vector<MemcardConnectState> *pStates);
46
56
66 virtual void OnCheckInfo(CheckInfoOp *pOp);
67
72 virtual void Finish();
73
80 virtual void Execute();
81
82private:
83 // Enquiries Execute() queued, which is what mCompleted is compared against. +0x1c
84 int mExpected;
85
86 // Where the answers are appended. Borrowed, not owned. +0x20
87 std::vector<MemcardConnectState> *mStates;
88
89 // Index into the slot tables for each queued enquiry, in the order they were queued. +0x24
90 int mSlotIndex[kMemcardMaxEnumeratedSlots];
91
92 // Enquiries that have reported. +0x44
93 int mCompleted;
94};
Enquiry about the card in one slot.
Definition checkinfoop.h:13
virtual void Finish()
GetAllConnectStatesMCT(MemcardUser *pUser, Memcard *pCard, int nCookie, std::vector< MemcardConnectState > *pStates)
Construct an idle enquiry.
virtual void Execute()
Queue one enquiry per available slot.
virtual ~GetAllConnectStatesMCT()
Release the task.
virtual void OnCheckInfo(CheckInfoOp *pOp)
Append one slot's state to mStates and finish once every enquiry has reported.
MemcardTask(MemcardUser *pUser, Memcard *pCard, int nPortSlot, int nCookie)
Construct an idle task against one card slot.
Receiver notified once a memory-card task has finished.
Definition memcarduser.h:24
Queue of memory-card operations, with one entry point per libmc call.
Definition memcard.h:29
constexpr int kMemcardMaxEnumeratedSlots
Slots mSlotIndex reserves room for, which is two ports of four multi-tap slots.
Definition getallconnectstatesmct.h:9