2008-08-06 03:09:59 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* Snes9x 1.50
|
|
|
|
*
|
|
|
|
* Nintendo Gamecube Port
|
|
|
|
* softdev July 2006
|
|
|
|
* crunchy2 May 2007
|
|
|
|
*
|
|
|
|
* sdload.cpp
|
|
|
|
*
|
|
|
|
* Load ROMS from SD Card
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _LOADFROMSDC_
|
|
|
|
#define _LOADFROMSDC_
|
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-06 03:55:59 +02:00
|
|
|
static int FileSortCallback(const void *f1, const void *f2);
|
2008-08-06 04:31:44 +02:00
|
|
|
int updateFATdirname();
|
|
|
|
int parseFATdirectory();
|
2008-08-06 03:09:59 +02:00
|
|
|
int LoadSDFile (char *filename, int length);
|
2008-08-06 03:55:59 +02:00
|
|
|
void SaveSRAMToSD (bool silent);
|
|
|
|
void LoadSRAMFromSD (bool silent);
|
|
|
|
void SavePrefsToSD (bool silent);
|
|
|
|
void LoadPrefsFromSD (bool silent);
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2008-08-06 03:39:43 +02:00
|
|
|
extern char currSDdir[MAXPATHLEN];
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
#endif
|