filetypes.h 444 B

12345678910111213141516171819202122
  1. // insert cool lengthy disclaimer here
  2. // filetypes.h: fs scanning and file identification
  3. #ifndef FILETYPES_H
  4. #define FILETYPES_H
  5. #include "ff.h"
  6. typedef enum {
  7. TYPE_UNKNOWN = 0, /* 0 */
  8. TYPE_SMC, /* 1 */
  9. TYPE_SRM, /* 2 */
  10. TYPE_SPC /* 3 */
  11. } SNES_FTYPE;
  12. char fs_path[256];
  13. SNES_FTYPE determine_filetype(char* filename);
  14. //uint32_t scan_fs();
  15. uint16_t scan_dir(char* path, char mkdb);
  16. FRESULT get_db_id(uint16_t*);
  17. #endif