KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
fs_vmu.h File Reference

VMU filesystem driver. More...

#include <sys/cdefs.h>
#include <kos/fs.h>
#include <dc/vmu_pkg.h>

Go to the source code of this file.

Functions

static int fs_vmu_set_header (file_t fd, const vmu_pkg_t *pkg)
 Set a header to an opened VMU file.
 
static int fs_vmu_set_default_header (const vmu_pkg_t *pkg)
 Set a default header for newly created VMU files.
 

Detailed Description

VMU filesystem driver.

The VMU filesystem driver mounts itself on /vmu of the VFS. Each memory card has its own subdirectory off of that directory (i.e, /vmu/a1 for slot 1 of the first controller). VMUs themselves have no subdirectories, so the driver itself is fairly simple.

Files on a VMU must be multiples of 512 bytes in size, and should have a header attached so that they show up in the BIOS menu.

This layer is built off of the vmufs layer, which does all the low-level operations. It is generally easier to work with things at this level though, so that you can use the normal libc file access functions.

Author
Megan Potter
See also
dc/vmu_pkg.h
dc/vmufs.h