ElevenMPV/include/dirbrowse.h
Joel16 1d22c961ef Add parent dir in non root directory
There is probably a much better way to do this, but this works for now.
2019-05-14 12:31:56 -04:00

22 lines
484 B
C

#ifndef _ELEVENMPV_DIRBROWSE_H_
#define _ELEVENMPV_DIRBROWSE_H_
#include <psp2/types.h>
typedef struct File {
struct File *next; // Next item
SceBool is_dir; // Folder flag
char name[256]; // File name
char ext[5]; // File extension
} File;
extern File *files;
int Dirbrowse_PopulateFiles(SceBool clear);
void Dirbrowse_DisplayFiles(void);
File *Dirbrowse_GetFileIndex(int index);
void Dirbrowse_OpenFile(void);
int Dirbrowse_Navigate(SceBool parent);
#endif