resonance 1.0.1
Loading...
Searching...
No Matches
metmemdetectscreen.h
Go to the documentation of this file.
1#pragma once
2
4#include "met/metscreen.h"
5
36public:
49 int nPriority,
50 const HxStr &name,
51 const HxStr &directory,
52 const HxStr &file);
53
59
69 static MetMemDetectScreen *New(MetRenderer *pRenderer, int nPriority);
70
85 virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice);
86
96 virtual void UpdateIdle(float flTime);
97
107 virtual void OnAllConnectStates();
108
127#ifdef VIDEO_STANDARD_PAL
128 virtual void OnMinimumSaveSpace(int nPortSlot, int nSpace, int nSkipWarning, int nCampaign);
129#else
130 virtual void OnMinimumSaveSpace(int nPortSlot, int nSpace);
131#endif
132
143 virtual void OnCardFormatted(int nPortSlot, int nStatus);
144
155 virtual void OnPersonasLoaded(int nPortSlot, int nStatus);
156
167 virtual void OnGlobalSettingsLoaded(int nPortSlot, int nStatus);
168
179 virtual void StartDetect();
180
190 virtual void StartLoadPersonas();
191
201 virtual void OnNoCard() {
202 }
203
212 virtual void OnDetectFinished() {
213 }
214
215#ifdef VIDEO_STANDARD_PAL
227 virtual void ShowFormatCheck(const MemcardConnectState &slot);
228#endif
229
238 virtual void StartSaveSpaceCheck();
239
240private:
241 // Zeroed by the constructor and never read. +0x90 and +0x94
242 int mUnused1;
243 int mUnused2;
244
245protected:
246 // Set by StartLoadPersonas() and by the MetLocPickCharScreen override at 0x002ba148, and never
247 // read. +0x98
249
250private:
251 // The renderer time the autosave notice went up, or 0 while it is not showing.
252 float mAutosaveNoticeTime;
253};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Receiver notified once a memory-card task has finished.
Definition memcarduser.h:24
virtual void OnCardFormatted(int nPortSlot, int nStatus)
Report the result of formatting the card in port 1.
virtual void UpdateIdle(float flTime)
Close the autosave notice once it has been up for 480 units of renderer time.
virtual ~MetMemDetectScreen()
virtual void OnAllConnectStates()
Load the global settings from the card in port 1, or offer to format it.
static MetMemDetectScreen * New(MetRenderer *pRenderer, int nPriority)
Build a detector on the heap with an empty screen name, directory, and container name.
int mPersonaLoadRequested
Definition metmemdetectscreen.h:248
virtual void OnNoCard()
Respond to finding no usable card in port 1.
Definition metmemdetectscreen.h:201
virtual void OnMsgScreenDismissed(const HxStr &name, int nChoice)
Act on the player's response to one of the probe's dialogues.
virtual void OnGlobalSettingsLoaded(int nPortSlot, int nStatus)
Run StartLoadPersonas().
virtual void OnPersonasLoaded(int nPortSlot, int nStatus)
Run StartSaveSpaceCheck().
virtual void StartSaveSpaceCheck()
Check the free space on the card in port 1.
virtual void StartDetect()
Show the detection notice and list the connected cards.
MetMemDetectScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct the detector.
virtual void OnMinimumSaveSpace(int nPortSlot, int nSpace)
Warn when the card in port 1 has less free space than a save needs, or show the autosave notice.
virtual void OnDetectFinished()
Respond to the probe ending.
Definition metmemdetectscreen.h:212
virtual void StartLoadPersonas()
Show the loading notice and load the personas from the card in port 1.
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68
MetScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct a screen and start its container load.
What one card slot reports about itself, and the memory-card location the front end stores.
Definition memcardconnectstate.h:21