diff --git a/desmume/src/Makefile.am b/desmume/src/Makefile.am index 5ac336049..8445ed7f6 100644 --- a/desmume/src/Makefile.am +++ b/desmume/src/Makefile.am @@ -8,4 +8,5 @@ libdesmume_a_SOURCES = \ FIFO.c FIFO.h \ GPU.cpp GPU.hpp debug.c debug.h \ MMU.cpp MMU.hpp NDSSystem.cpp NDSSystem.hpp \ - thumb_instructions.cpp thumb_instructions.hpp + thumb_instructions.cpp thumb_instructions.hpp \ + windows/cflash.cpp windows/cflash.h fs.c fs.h diff --git a/desmume/src/fs.h b/desmume/src/fs.h new file mode 100644 index 000000000..b1ed75c77 --- /dev/null +++ b/desmume/src/fs.h @@ -0,0 +1,29 @@ +#ifndef FS_H +#define FS_H + +#include "types.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define FS_IS_DIR 1 + +#define FS_ERR_NO_MORE_FILES 1 + +typedef struct { + char cFileName[256]; + char cAlternateFileName[14]; + u32 flags; +} FsEntry; + +void * FsReadFirst(const char * path, FsEntry * entry); +int FsReadNext(void * search, FsEntry * entry); +void FsClose(void * search); +int FsError(void); + +#ifdef __cplusplus +} +#endif + +#endif