11#include <sdcard/gcsd.h>
14#include "GameCubeFileSystemDriver.h"
16static DISC_INTERFACE * GetDiscSlotA() {
return get_io_gcsda(); }
17static DISC_INTERFACE * GetDiscSlotB() {
return get_io_gcsdb(); }
18static DISC_INTERFACE * GetDiscPort2() {
return get_io_gcsd2(); }
19static DISC_INTERFACE * GetDiscGcLoader() {
return &__io_gcode; }
26 {
DEVICE_SD_SLOTA, GetDiscSlotA,
"carda",
"carda:/",
"SD Gecko Slot A",
"SD card not found!",
false,
true,
true },
27 {
DEVICE_SD_SLOTB, GetDiscSlotB,
"cardb",
"cardb:/",
"SD Gecko Slot B",
"SD card not found!",
false,
true,
true },
28 {
DEVICE_SD_PORT2, GetDiscPort2,
"port2",
"port2:/",
"SD in SP2",
"SD card not found!",
false,
true,
true },
29 { DEVICE_SD_GCLOADER, GetDiscGcLoader,
"gcloader",
"gcloader:/",
"GC Loader",
"SD card not found!",
false,
false,
false },
37 fatSlotCount =
sizeof(gameCubeFatSlots) /
sizeof(gameCubeFatSlots[0]);
49 outCount =
sizeof(devices) /
sizeof(devices[0]);
56 outCount =
sizeof(devices) /
sizeof(devices[0]);
const int * getValidSaveDevices(int &outCount) const override
Devices (Device enum values, in priority order) that are offered when choosing where to save to on th...
void init() override
Initializes the driver and auto-mounts devices flagged autoMountAtStartup.
const int * getValidLoadDevices(int &outCount) const override
Devices (Device enum values, in priority order) that are offered when choosing where to load from on ...
const OgcFatSlotDescriptor * fatSlots
Table of FAT slots this platform supports; set by the concrete driver.
void initFatSlotsAndAutoMount()
Runs the shared boot-time pass: probe every pollable fatSlots[] entry once for isPresentCache,...
const char * unsupportedFormatMessage
Text returned by mountResultMessage() when a present device fails to mount.
int fatSlotCount
Number of entries in fatSlots.
DISC_INTERFACE * dvdDisc
Disc interface used to mount the DVD drive, or nullptr if the platform has none.
OgcSmbDriver smbDriver
The network-share driver returned by getSmb()
@ DEVICE_SD_SLOTA
GameCube memory card slot A.
@ DEVICE_SD_SLOTB
GameCube memory card slot B.
@ DEVICE_SD_PORT2
GameCube SD Gecko in memory card slot B.
One hot-pluggable FAT-formatted slot, shared shape between GameCube (SD Gecko A/B/port2,...