|
resonance 1.0.1
|
First memory-card probe, run during start-up. More...
#include <metmemdetectstartup.h>


Public Member Functions | |
| MetMemDetectStartup (MetRenderer *pRenderer, int nPriority) | |
| Construct the screen. | |
| virtual | ~MetMemDetectStartup () |
| virtual void | OnFadeOutDone () |
| Start the probe once the fade out has finished. | |
| virtual void | OnFadeInDone () |
| Hide the screen and exit once the fade in has finished. | |
| virtual void | EnterAndShow () |
| Attach the container view to the renderer, enable game drawing, hide the screen, and record the time it entered. | |
| virtual void | BeginExit () |
| Bring up MetSonyScreen. | |
| virtual void | UpdateIdle (float flTime) |
| Advance the fade, start the fade out 360 frames after the screen entered, raise mem_check 360 frames after a missing card, and then run the base. | |
| virtual void | StartDetect () |
| Show the detection notice and run the base probe. | |
| virtual void | OnNoCard () |
| Record the time a missing card was found. | |
| virtual void | OnDetectFinished () |
| Fade back in. | |
| virtual void | PlaySlideSound (int) |
| Silence the slide sound. | |
| virtual void | PlayLeaveSound (int) |
| Silence the leave sound. | |
| virtual void | PlayHighSound (int) |
| Silence the high sound. | |
| virtual void | PlayCycleLeftSound (int) |
| Silence the cycle-left sound. | |
| virtual void | PlayCycleRightSound (int) |
| Silence the cycle-right sound. | |
| virtual void | PlayErrorSound (int) |
| Silence the error sound. | |
| Public Member Functions inherited from MetMemDetectScreen | |
| MetMemDetectScreen (MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file) | |
| Construct the detector. | |
| virtual | ~MetMemDetectScreen () |
| virtual void | OnMsgScreenDismissed (const HxStr &name, int nChoice) |
| Act on the player's response to one of the probe's dialogues. | |
| virtual void | OnAllConnectStates () |
| Load the global settings from the card in port 1, or offer to format it. | |
| 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 | OnCardFormatted (int nPortSlot, int nStatus) |
| Report the result of formatting the card in port 1. | |
| virtual void | OnPersonasLoaded (int nPortSlot, int nStatus) |
| Run StartSaveSpaceCheck(). | |
| virtual void | OnGlobalSettingsLoaded (int nPortSlot, int nStatus) |
| Run StartLoadPersonas(). | |
| virtual void | StartLoadPersonas () |
| Show the loading notice and load the personas from the card in port 1. | |
| virtual void | StartSaveSpaceCheck () |
| Check the free space on the card in port 1. | |
| Public Member Functions inherited from MetScreen | |
| MetScreen (MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file) | |
| Construct a screen and start its container load. | |
| virtual | ~MetScreen () |
| Unregister from the renderer and release the container. | |
| void | DeliverCommand (const MetScreenCommand *pCommand) |
| Play the sound one navigation command calls for and then act on the command. | |
| void | UpdateAnimationFrame (float flTime) |
| Drive the frame of whichever animation is running and run the idle hook when none is. | |
| void | UpdateFrame (float flTime) |
| Advance one screen by one frame. | |
| virtual void | PushNamedScreen (const HxStr &name) |
| Bring one named screen onto the renderer's screen stack. | |
| virtual void | ActivateNamedPanel (const HxStr &name) |
| Make one named screen the renderer's active panel. | |
| virtual void | OnPanelActivated () |
| Act on this screen having become the renderer's active panel. | |
| virtual void | ExitScreenByName (const HxStr &name) |
| Start one named screen's exit animation. | |
| virtual void | OnUnusedHook () |
| Do nothing. | |
| virtual void | OnKeyboardDismissed () |
| Take control back after the keyboard screen has finished. | |
| virtual void | OnDrawPass () |
| Contribute to the renderer's draw pass. | |
| virtual void | OnDestroying () |
| Release what the screen acquired, ahead of the rest of destruction. | |
| virtual int | PollContainerLoad () |
| Advance this screen's container load and resolve its views once the load finishes. | |
| virtual void | OnMsgScreenShown (const HxStr &name) |
| Act on a message dialogue becoming visible. | |
| virtual void | SetShowing (int nShowing) |
| Show or hide the view and every drawable the container loaded. | |
| virtual void | BeginContainerLoad (const HxStr &directory, const HxStr &file) |
| Intern a container load under this screen's container name and enqueue it. | |
| virtual void | HandleCommand (const MetScreenCommand *pCommand) |
| Act on a navigation command. | |
| virtual void | UpdateIdleAnimation (float flTime) |
| Advance whatever the screen animates while it is neither entering nor exiting. | |
| virtual void | StartRepeatingSound (float flStartTime, float flInterval, Rnd::Button *pButton, int nCycles) |
| Start alternating one button between its states 2 and 1. | |
| virtual void | UpdateRepeatingSound (float flTime) |
| Advance the alternation that StartRepeatingSound() started. | |
| virtual void | OnRepeatingSoundFinished (Rnd::Button *pButton) |
| Act on the alternation that StartRepeatingSound() started having finished. | |
| virtual void | StartEnterAnimation (float flTime) |
| Rewind the enter animation and record the time it starts at. | |
| virtual void | UpdateEnterAnimation (float flTime) |
| Drive the enter animation and finish it once it passes its end. | |
| virtual void | OnEnterFinished () |
| Act on the enter animation having finished. | |
| virtual void | StartExitAnimation (float flTime) |
| Record the time the exit animation starts at. | |
| virtual void | UpdateExitAnimation (float flTime) |
| Drive the exit animation and hide the screen once it passes its end. | |
| virtual void | OnExitFinished () |
| Act on the exit animation having finished. | |
| virtual void | Draw () |
| Draw the view. | |
| virtual void | ResolveContainerViews () |
| Resolve the three views the container produced and hide the screen. | |
| Public Member Functions inherited from MsgSink | |
| void * | operator new (size_t nSize) |
| Allocate a sink from the tagged heap under the tag "MsgSink". | |
| void | operator delete (void *pBlock) |
| Release a sink to the tagged heap. | |
| virtual | ~MsgSink () |
| virtual void | Dispatch (Message *pMsg) |
| Accept a message. | |
| Public Member Functions inherited from MemcardUser | |
| virtual | ~MemcardUser () |
| Release the receiver. | |
| virtual void | OnConnectState (MemcardConnectState state, int nStatus) |
| Report the state of one slot. | |
| virtual void | OnCardUnformatted (int nPortSlot, int nStatus) |
| Report a finished unformat. | |
| virtual void | OnPersonasSaved (int nPortSlot, int nStatus) |
| Report a finished save of the FreQ roster. | |
| virtual void | OnRemixSaved (int nPortSlot, int nStatus) |
| Report a finished save of one remix. | |
| virtual void | OnGlobalSettingsSaved (int nPortSlot, int nStatus) |
| Report a finished save of the global settings. | |
| virtual void | OnJukeboxPlayListSaved (int nPortSlot, int nStatus) |
| Report a finished save of a jukebox playlist. | |
| virtual void | OnRemixesListed (int nPortSlot, int nStatus) |
| Report a finished listing of the saved remixes. | |
| virtual void | OnRemixLoaded (int nPortSlot, int nStatus) |
| Report a finished load of one remix. | |
| virtual void | OnJukeboxPlayListLoaded (int nPortSlot, int nStatus) |
| Report a finished load of a jukebox playlist. | |
| virtual void | OnRemixDeleted (int nPortSlot, int nStatus) |
| Report a finished deletion of one remix. | |
| virtual void | UnusedFirstReport (int nPortSlot, int nStatus) |
| Do nothing. | |
| virtual void | UnusedSecondReport (int nPortSlot, int nStatus) |
| Do nothing. | |
| virtual void | OnFileLoaded (int nStatus) |
| Report a finished load of one file. | |
| virtual void | OnFileSaved (int nStatus) |
| Report a finished save of one file. | |
| Public Member Functions inherited from FadeUser | |
| virtual | ~FadeUser () |
Static Public Member Functions | |
| static MetMemDetectStartup * | New (MetRenderer *pRenderer, int nPriority) |
| Build the screen on the heap. | |
| Static Public Member Functions inherited from MetMemDetectScreen | |
| static MetMemDetectScreen * | New (MetRenderer *pRenderer, int nPriority) |
| Build a detector on the heap with an empty screen name, directory, and container name. | |
| Static Public Member Functions inherited from MetScreen | |
| static std::map< HxStr, MetContainerLoad * > & | ContainerLoaderMap () |
| Shared table of container loads, interned under the container name. | |
| static std::map< HxStr, MetScreenEntry > & | ScreenRegistry () |
| Shared table of live screens, interned under the screen registry key. | |
| static MetScreen * | FindScreenByName (const HxStr &name) |
| Resolve one screen by its registry key. | |
| static MetScreen * | FindEndScreen (MetRenderer *pRenderer, const HxStr &name) |
| Resolve one end-of-game screen by its registry key, failing fatally when it is absent. | |
| static void | CreateMainMenuScreens (MetRenderer *pRenderer) |
| Create the main-menu screens. | |
| static void | DestroyAllScreens () |
| Delete every registered screen and release every container loader. | |
| static void | CreateStartupScreens (MetRenderer *pRenderer) |
| Create the four screens the front end needs before its containers have loaded. | |
| static void | CreateFrontEndScreens (MetRenderer *pRenderer) |
| Create every remaining front-end screen, once. | |
| static void | DestroyCategory2Screens () |
| Delete and unregister every screen in category 2. | |
| static void | DestroyCategory1Screens () |
| Delete and unregister every screen in category 1. | |
| static void | DestroyNonDefaultScreens () |
| Delete and unregister every screen outside category 0, then rewind the rndMetLocAndNet zone. | |
| static void | PollContainerLoads () |
| Poll every container load that has not finished, and hide the drawables of each that does. | |
Additional Inherited Members | |
| Public Attributes inherited from MetScreen | |
| Rnd::View * | mView |
| The container's root view. | |
| int | mEnterPending |
| Set when the screen was pushed before its container load finished. | |
| int | mActivatePending |
| Set when the screen was activated as a panel before its container load finished. | |
| float | mRepeatScale |
| Scale on the input auto-repeat interval. | |
| Protected Member Functions inherited from MetScreen | |
| virtual void | DispatchPriv (Message *pMsg) |
| Act on a message. | |
| void | ResolveAnimationViews () |
| Resolves the two animation views from the screen name and records the enter animation's end frame. | |
| Protected Attributes inherited from MetMemDetectScreen | |
| int | mPersonaLoadRequested |
| Protected Attributes inherited from MetScreen | |
| float | mAnimEndFrame |
| float | mEnterStartTime |
| MetRenderer * | mRenderer |
| int | mExitChoice |
| int | mAcceptsCommands |
| Rnd::View * | mEnterAnim |
| std::vector< HxStr > | mHelpKeys |
| int | mViewsUnresolved |
| int | mPlaysCommandSounds |
| int | mShowsLoadedDrawables |
First memory-card probe, run during start-up.
Its RTTI descriptor is at 0x008eff90. It has two public non-virtual bases at fixed offsets, MetMemDetectScreen at +0x00 and FadeUser at +160. The object is 0xb0 bytes.
Three vtables belong to the class, the 44-entry primary at 0x007fd518, the four-entry FadeUser table at 0x007fd440 that adjusts this by -160, and the 21-entry MemcardUser table at 0x007fd468 that adjusts it by -140. The FadeUser table is where this class supplies the two FadeUser pure virtuals. The primary is the same length as the MetMemDetectScreen table, and the class declares no new virtual.
The constructor at 0x002df058 takes only the renderer and the load priority. It runs the MetMemDetectScreen constructor with an empty screen name, metagame/Shared for the directory, and memdetect1 for the container. The empty screen name is the one in the subsystem, and it makes the two animation views resolve as _EE.anim and _BF.anim with nothing before the underscore. MetLoadGameScreen uses an empty screen name as well. The constructor then builds mFade, the same MetFade that MetLoadGameScreen builds.
The destructor at 0x002e2eb8 releases mFade through the scalar deallocator with no null test, which is what a delete expression compiles to for a class with no destructor, restores the FadeUser vptr to 0x007ec070, runs the MetMemDetectScreen destructor, and releases the object with the tag MsgSink.
Twelve slots differ from the MetMemDetectScreen table. Slots 20 through 25 sit eight bytes apart at 0x002e2e00 through 0x002e2e28 and are two-instruction jr ra stubs. This screen plays none of the six MetScreen sounds, the only class in the subsystem that silences all six.
The screen shows over the start-up logo, fades out 360 frames after it enters, and probes the card once the fade out has finished. A missing card raises mem_check 360 frames later. When the probe ends, the screen fades back in and exits to MetSonyScreen.
New() allocates 0xb0 bytes. The translation unit spans 0x002df058 to 0x002e33f0. Besides the members below, it has the type function at 0x002e2d80, per-unit copies of MsgSink and FadeUser routines, and template library emissions.
| MetMemDetectStartup::MetMemDetectStartup | ( | MetRenderer * | pRenderer, |
| int | nPriority ) |
Construct the screen.
| pRenderer | The front-end renderer this screen registers on. |
| nPriority | The load priority. |
|
virtual |
|
static |
Build the screen on the heap.
MetScreen::CreateStartupScreens() registers this factory. It allocates 0xb0 bytes.
| pRenderer | The front-end renderer the screen registers on. |
| nPriority | The load priority. |
|
virtual |
|
virtual |
|
virtual |
Attach the container view to the renderer, enable game drawing, hide the screen, and record the time it entered.
Slot 5.
Reimplemented from MetScreen.
|
virtual |
Bring up MetSonyScreen.
Slot 9. The override does not run the base exit.
Reimplemented from MetScreen.
|
virtual |
Advance the fade, start the fade out 360 frames after the screen entered, raise mem_check 360 frames after a missing card, and then run the base.
Slot 26.
| flTime | The renderer's current animation frame position. |
Reimplemented from MetMemDetectScreen.
|
virtual |
Show the detection notice and run the base probe.
Slot 39.
Reimplemented from MetMemDetectScreen.
|
virtual |
Record the time a missing card was found.
Slot 41.
Reimplemented from MetMemDetectScreen.
|
virtual |
Fade back in.
Slot 42.
Reimplemented from MetMemDetectScreen.
|
inlinevirtual |
|
inlinevirtual |
Silence the leave sound.
Reimplemented from MetScreen.
|
inlinevirtual |
Silence the high sound.
Reimplemented from MetScreen.
|
inlinevirtual |
Silence the cycle-left sound.
Reimplemented from MetScreen.
|
inlinevirtual |
Silence the cycle-right sound.
Reimplemented from MetScreen.
|
inlinevirtual |
Silence the error sound.
Reimplemented from MetScreen.