6#include "GameCubePlatform.h"
13 this->threadDriver->init();
16 this->videoDriver->init(
config.canvasWidth,
config.canvasHeight);
19 this->audioDriver->init();
22 this->inputDriver->init();
25 this->fileSystemDriver->init();
28 this->logger =
new Logger();
31 this->logger->registerBackend(LOGGER_FILE,
new LoggerFile());
35 const char * mountPath = FindFirstMountedPath(this->fileSystemDriver, deviceCandidates, 1);
37 if(mountPath[0] !=
'\0') {
39 snprintf(logConfig.
filePath,
sizeof(logConfig.
filePath),
"%sdebug.log", mountPath);
42 this->logger->init(logConfig);
54 if (fileSystemDriver) {
55 fileSystemDriver->shutdown();
56 delete fileSystemDriver;
57 fileSystemDriver =
nullptr;
61 inputDriver->shutdown();
63 inputDriver =
nullptr;
67 audioDriver->shutdown();
69 audioDriver =
nullptr;
73 videoDriver->shutdown();
75 videoDriver =
nullptr;
79 threadDriver->shutdown();
81 threadDriver =
nullptr;
GameCube FileSystemDriver: memory card slots, GC Loader, and DVD, plus DEVICE_SMB (broadband adapter)...
Log backend that appends to a file through the platform's devoptab path.
Central fan-out dispatcher.
GC/Wii AudioDriver: AESND-based fixed voices for one-shots, wraps a GuiSoundOggPlayer for the backgro...
Log backend writing to the console debug output via SYS_Report.
Log backend for a USB Gecko adapter over EXI, via usbgecko.c.
GC/Wii ThreadDriver, built on libogc's LWP threading primitives.
GC/Wii VideoDriver: raw GX, double-buffered XFB.
@ DEVICE_SD_PORT2
GameCube SD Gecko in memory card slot B.
Full runtime configuration for the Logger.
char filePath[1024]
Path of the log file for the file backend. Each platform's init() points this at debug....