2008-08-06 03:09:59 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Snes9x 1.50
|
|
|
|
*
|
|
|
|
* Nintendo Gamecube Port
|
|
|
|
* softdev July 2006
|
|
|
|
* crunchy2 May 2007
|
|
|
|
*
|
2008-08-07 07:19:17 +02:00
|
|
|
* fileop.h
|
2008-08-06 03:09:59 +02:00
|
|
|
*
|
2008-08-07 07:19:17 +02:00
|
|
|
* File operations
|
2008-08-06 03:09:59 +02:00
|
|
|
****************************************************************************/
|
|
|
|
|
2008-08-07 07:19:17 +02:00
|
|
|
#ifndef _FATFILESC_
|
|
|
|
#define _FATFILESC_
|
2008-08-06 03:39:43 +02:00
|
|
|
#include <gccore.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <ogcsys.h>
|
|
|
|
#include <fat.h>
|
|
|
|
#include <sys/dir.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <unistd.h>
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2008-08-08 09:57:01 +02:00
|
|
|
#define ROOTFATDIR "fat:/"
|
2008-08-07 05:25:02 +02:00
|
|
|
|
|
|
|
bool fat_remount(PARTITION_INTERFACE partition);
|
2008-08-08 09:57:01 +02:00
|
|
|
bool fat_is_mounted(PARTITION_INTERFACE partition);
|
2008-08-10 05:14:39 +02:00
|
|
|
bool changeFATInterface(int method, bool silent);
|
2008-08-07 05:25:02 +02:00
|
|
|
int parseFATdirectory(int method);
|
|
|
|
int LoadFATFile (char *filename, int length);
|
|
|
|
int SaveBufferToFAT (char *filepath, int datasize, bool silent);
|
|
|
|
int LoadBufferFromFAT (char *filepath, bool silent);
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2008-08-07 05:25:02 +02:00
|
|
|
extern char currFATdir[MAXPATHLEN];
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
#endif
|