Removed the windows-specific code from cflash and fat files.

Moved the directory access code in fs.c/.h
fs.c is still windows-specific code, I'll have to write a
POSIX version of that file.
This commit is contained in:
yabause 2006-06-06 22:57:24 +00:00
parent ac6ea9b9a4
commit 1c1aa297f2
2 changed files with 31 additions and 1 deletions

View File

@ -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

29
desmume/src/fs.h Normal file
View File

@ -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