#ifndef ro_file_h
#define ro_file_h

#include <stdint.h>

#define MAXPATH 1024
#define FILE_FILESYSTEM_CHAR ':'
#define FILE_UPFOLDER_CHAR   '^'
#define FILE_FOLDER_CHAR     '.'
#define FILE_EXTENSION_CHAR  '/'

typedef struct
{
  uint32_t loadaddr;
  uint32_t execaddr;
  uint32_t length;
  uint32_t attrs;
  uint32_t type;
  char     name[256];
} ro_file_info;

int Dir_ReadEntry(const char* dirname, int entry, ro_file_info* ro);

#endif
