wavelength 1.0.0
Loading...
Searching...
No Matches
mcsavesettingstask.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/gameoptions.h"
9#include "os/string.h"
10
20public:
27 ~MCSaveSettingsTask() override = default;
28
36
46 void Set(int nPort, GameOptions *pSettings, int nOverwrite);
47
55 int GetNeeded();
56
65 void OnSaveSpace(int nNeeded) override;
66
67private:
68 // The steps belong to the SerialTasks list.
70 MCCreateSaveDirTask *mCreateDir;
71 MCSaveFileTask *mSaveFile;
72 int mNeeded;
73 int mPort;
74 int mSize;
75 String mName;
76};
The settings of the game options screen, which are saved apart from the players to the settings file ...
Definition gameoptions.h:13
Work that measures the space a save to the Freq directory needs, and checks it against the free space...
Definition mcchecksavespaceneededtask.h:25
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
MCSaveSettingsTask()
Construct the steps.
int GetNeeded()
Report the space a save that did not fit needed.
void OnSaveSpace(int nNeeded) override
Prepare the directory and the file steps when the save fits, and otherwise fail the measurement.
~MCSaveSettingsTask() override=default
Destroy the object.
void Set(int nPort, GameOptions *pSettings, int nOverwrite)
Prepare the work, and serialise the settings into g_pMemcardBuffer.
Memory card work made of MemcardTask steps that run one after another.
Definition memcardserialtask.h:13
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