Merge pull request #20 from idunoe/master

Defined FS archive ids
This commit is contained in:
smea 2014-10-27 09:31:10 -07:00
commit 08f8caf924
2 changed files with 18 additions and 1 deletions

View File

@ -126,7 +126,7 @@ int main()
Handle fileHandle;
u32 bytesRead;
FS_archive sdmcArchive=(FS_archive){0x9, (FS_path){PATH_EMPTY, 1, (u8*)""}};
FS_archive sdmcArchive=(FS_archive){ARCH_SDMC, (FS_path){PATH_EMPTY, 1, (u8*)""}};
FS_path filePath=(FS_path){PATH_CHAR, 10, (u8*)"/test.bin"};
FSUSER_OpenFileDirectly(fsuHandle, &fileHandle, sdmcArchive, filePath, FS_OPEN_READ, FS_ATTRIBUTE_NONE);
FSFILE_Read(fileHandle, &bytesRead, 0x0, (u32*)gspHeap, 0x46500);

View File

@ -67,6 +67,23 @@ typedef enum
PATH_WCHAR = 4, //!< Specifies a text based path with a 16-bit short per character.
} FS_pathType;
/*! FS archive ids */
typedef enum
{
ARCH_ROMFS = 0x3,
ARCH_SAVEDATA = 0x4,
ARCH_EXTDATA = 0x6,
ARCH_SHARED_EXTDATA = 0x7,
ARCH_SYSTEM_SAVEDATA = 0x8,
ARCH_SDMC = 0x9,
ARCH_SDMC_WRITE_ONLY = 0xA,
ARCH_BOSS_EXTDATA = 0x12345678,
ARCH_CARD_SPIFS = 0x12345679,
ARCH_NAND_RW = 0x1234567D,
ARCH_NAND_RO = 0x1234567E,
ARCH_NAND_RO_WRITE_ACCESS = 0x1234567F,
} FS_archiveIds;
/*! FS path */
typedef struct
{