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:
parent
ac6ea9b9a4
commit
1c1aa297f2
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue