Wii Platform, built on the shared GC/Wii driver set (OgcVideoDriver, OgcAudioDriver, OgcInputDriver, OgcThreadDriver) plus WiiFileSystemDriver for hot-pluggable SD/USB/DVD. More...
#include <WiiPlatform.h>
Public Member Functions | |
| void | init (const PlatformConfig &config) override |
| Constructs and initializes all five drivers for this platform. | |
| void | requestExit () override |
| Tears down the platform (via shutdown()) and then performs whatever platform-appropriate action actually ends the app - return to loader/menu, power off, or just exit(), depending on how getSystemEvent() last reported and how the platform was reached. | |
| SystemEvent | getSystemEvent () override |
| Current hardware/OS-level system event, if any. | |
| Status | getStatus () const override |
| Current platform lifecycle state (Running, Paused, Exiting). | |
| void | triggerExit () override |
| Transitions platform state to move to Exiting. | |
| AudioDriver * | getAudio () override |
| VideoDriver * | getVideo () override |
| InputDriver * | getInput () override |
| FileSystemDriver * | getFileSystem () override |
| ThreadDriver * | getThread () override |
| Logger * | getLogger () override |
| May return nullptr on a Platform that hasn't finished init() yet - LogPrintf()/LOG_*() already guard against this, but code calling platform->getLogger() directly should too. | |
Public Member Functions inherited from Platform | |
| const PlatformConfig & | getConfig () const |
| The PlatformConfig this platform was init()'d with. | |
| bool | shouldExit () |
| True once triggerExit() has been called, or the platform's own getSystemEvent() independently reports ShutdownRequested (eg. | |
Protected Member Functions | |
| void | shutdown () override |
| Shuts down and releases all five drivers. | |
Additional Inherited Members | |
Protected Attributes inherited from Platform | |
| PlatformConfig | config {} |
| Set by init() in every concrete Platform - store the passed-in config as the very first line of the override. | |
Wii Platform, built on the shared GC/Wii driver set (OgcVideoDriver, OgcAudioDriver, OgcInputDriver, OgcThreadDriver) plus WiiFileSystemDriver for hot-pluggable SD/USB/DVD.
Definition at line 27 of file WiiPlatform.h.
|
inline |
Definition at line 30 of file WiiPlatform.h.
|
inlineoverridevirtual |
Implements Platform.
Definition at line 39 of file WiiPlatform.h.
|
inlineoverridevirtual |
Implements Platform.
Definition at line 42 of file WiiPlatform.h.
|
inlineoverridevirtual |
Implements Platform.
Definition at line 41 of file WiiPlatform.h.
|
inlineoverridevirtual |
May return nullptr on a Platform that hasn't finished init() yet - LogPrintf()/LOG_*() already guard against this, but code calling platform->getLogger() directly should too.
Implements Platform.
Definition at line 44 of file WiiPlatform.h.
|
inlineoverridevirtual |
Current platform lifecycle state (Running, Paused, Exiting).
Implements Platform.
Definition at line 36 of file WiiPlatform.h.
|
overridevirtual |
Current hardware/OS-level system event, if any.
A single query rather than independent shutdown/reset flags.
Implements Platform.
Definition at line 114 of file WiiPlatform.cpp.
|
inlineoverridevirtual |
Implements Platform.
Definition at line 43 of file WiiPlatform.h.
|
inlineoverridevirtual |
Implements Platform.
Definition at line 40 of file WiiPlatform.h.
|
overridevirtual |
Constructs and initializes all five drivers for this platform.
| config | GUI canvas size and asset scale for this platform |
Implements Platform.
Definition at line 8 of file WiiPlatform.cpp.
|
overridevirtual |
Tears down the platform (via shutdown()) and then performs whatever platform-appropriate action actually ends the app - return to loader/menu, power off, or just exit(), depending on how getSystemEvent() last reported and how the platform was reached.
It does not return.
Implements Platform.
Definition at line 101 of file WiiPlatform.cpp.
|
overrideprotectedvirtual |
Shuts down and releases all five drivers.
Any background Thread that might still call into a driver must be stopped and joined (eg. via Thread::JoinAll()) before calling this, since the drivers it deletes may be in active use.
Implements Platform.
Definition at line 48 of file WiiPlatform.cpp.
|
inlineoverridevirtual |
Transitions platform state to move to Exiting.
Implements Platform.
Definition at line 37 of file WiiPlatform.h.