#ifndef FILE_BROWSE_H #define FILE_BROWSE_H #include #include #include #include using namespace std; struct DirEntry { std::string name; std::string path; bool isDirectory; char tid[5]; off_t size; }; typedef struct { char gameTitle[12]; //!< 12 characters for the game title. char gameCode[4]; //!< 4 characters for the game code. } sNDSHeadertitlecodeonly; void findNdsFiles(vector& dirContents); bool nameEndsWith(const std::string& name, const std::vector extensionList); void getDirectoryContents(std::vector& dirContents, const std::vector extensionList); void getDirectoryContents(std::vector& dirContents); #endif //FILE_BROWSE_H