wavelength 1.0.0
Loading...
Searching...
No Matches
mcsaveremixtask.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/remixinfo.h"
9#include "os/string.h"
10
20public:
27 ~MCSaveRemixTask() override = default;
28
36
49 void Set(int nPort,
50 const char *pszName,
51 RemixInfo *pInfo,
52 const void *pData,
53 int nSize,
54 int nOverwrite);
55
63 int GetNeeded();
64
76 void OnSaveSpace(int nNeeded) override;
77
78private:
79 // The steps belong to the SerialTasks list.
81 MCCreateSaveDirTask *mCreateDir;
82 MCSaveFileTask *mSaveFile;
83 int mNeeded;
84 int mPort;
85 int mSize;
86 String mName;
87};
Work that chooses the remix directory a remix is saved to, measures the space the save needs,...
Definition mccheckremixspaceneededtask.h:26
Task that creates the save directory at g_MemcardPath, with its icon, its icon.sys,...
Definition mccreatesavedirtask.h:18
Work that creates or replaces a file with a block of memory: open, write, and close.
Definition mcsavefiletask.h:13
void Set(int nPort, const char *pszName, RemixInfo *pInfo, const void *pData, int nSize, int nOverwrite)
Prepare the work, and serialise the description and the remix into g_pMemcardBuffer.
void OnSaveSpace(int nNeeded) override
Prepare the directory and the file steps when the save fits, and otherwise fail the measurement.
MCSaveRemixTask()
Construct the steps.
~MCSaveRemixTask() override=default
Destroy the object.
int GetNeeded()
Report the space a save that did not fit needed.
Memory card work made of MemcardTask steps that run one after another.
Definition memcardserialtask.h:13
Description of a saved remix.
Definition remixinfo.h:26
Receiver of the space a save needs, from the tasks that measure the space.
Definition savespaceuser.h:9
Growable text buffer that is also a PrnStream.
Definition string.h:19