// vfs.h // Author: Josh Holtrop // Created: 12/31/03 // Modified: 01/04/04 #define VFS_DISK_RD 1 #define VFS_DISK_FD 2 #define VFS_DISK_HD 3 #define VFS_FS_FAT12 1 #define VFS_LOC_FD0 1 typedef struct { dword type; dword fileSystem; dword location; dword link; char id[4]; } __attribute__((packed)) DiskDevice; void vfs_init(); byte *vfs_readFile(char *fileName); byte *vfs_readSector(DiskDevice *dd, dword sector, byte *dest, dword sectors); DiskDevice *vfs_getDiskDeviceByID(char *id); DiskDevice *rootDevice = 0; DiskDevice *firstDiskDevice = 0;