Game DB creation (prelim), FatFS extension

This commit is contained in:
ikari
2009-09-28 09:38:18 +02:00
parent f3e07ff30c
commit 38812ce99d
13 changed files with 210 additions and 20 deletions

22
src/filetypes.h Normal file
View File

@@ -0,0 +1,22 @@
// insert cool lengthy disclaimer here
// filetypes.h: fs scanning and file identification
#ifndef FILETYPES_H
#define FILETYPES_H
#include "ff.h"
typedef enum {
TYPE_UNKNOWN = 0, /* 0 */
TYPE_SMC, /* 1 */
TYPE_SRM, /* 2 */
TYPE_SPC /* 3 */
} SNES_FTYPE;
char fs_path[256];
SNES_FTYPE determine_filetype(char* filename);
//uint32_t scan_fs();
uint16_t scan_dir(char* path, char mkdb);
FRESULT get_db_id(uint16_t*);
#endif