mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-19 17:59:16 +01:00
1b9a56b877
*Added URL_List class that gets all Links of an http url. *Made HomebrewList class dynamic allocated like the URL_List class too now. This saves lots of unused memory. *Small cleanups NOTE: Punes made an update too (i didnt know he was doing it). We decided to have both in because of: Punes update updates only the files that are available on the SD/USB and only when you are doing a complete update. My update is downloading ALL files from the SVN Link (getting the whole list). These is mainly for people that are getting started or those who want to update the whole LanguageList
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
/****************************************************************************
|
|
* HomebrewFiles Class
|
|
* for USB Loader GX
|
|
***************************************************************************/
|
|
#ifndef ___HOMEBREWFILES_H_
|
|
#define ___HOMEBREWFILES_H_
|
|
|
|
#define MAXHOMEBREWS 500
|
|
|
|
typedef struct {
|
|
char FileName[100];
|
|
char FilePath[150];
|
|
unsigned int FileSize;
|
|
} FileInfos;
|
|
|
|
class HomebrewFiles
|
|
{
|
|
public:
|
|
//!Constructor
|
|
//!\param path Path where to check for homebrew files
|
|
HomebrewFiles(const char * path);
|
|
//!Destructor
|
|
~HomebrewFiles();
|
|
//! Load the dol/elf list of a path
|
|
//!\param path Path where to check for homebrew files
|
|
bool LoadPath(const char * path);
|
|
//! Get the a filename of the list
|
|
//!\param list index
|
|
char * GetFilename(int index);
|
|
//! Get the a filepath of the list
|
|
//!\param list index
|
|
char * GetFilepath(int index);
|
|
//! Get the a filesize of the list
|
|
//!\param list index
|
|
unsigned int GetFilesize(int index);
|
|
//! Get the filecount of the whole list
|
|
int GetFilecount();
|
|
//! Sort list by filepath
|
|
void SortList();
|
|
protected:
|
|
int filecount;
|
|
FileInfos *FileInfo;
|
|
};
|
|
|
|
#endif
|