mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-09-08 08:33:19 +02:00
![e.bovendeur](/assets/img/avatar_default.png)
* Added initial (untested!) support for the zip file format, which is supported by the HBC * Began working on compressed wad files. Uncompressing fails for now, so uploading WAD files should be done with the previous version of Wiiload. * Fixed issue 902 (hence the large commit).
39 lines
904 B
C++
39 lines
904 B
C++
/****************************************************************************
|
|
* URL List Class
|
|
* for USB Loader GX
|
|
* by dimok
|
|
***************************************************************************/
|
|
#ifndef ___URLLIST_H_
|
|
#define ___URLLIST_H_
|
|
|
|
#include "network/networkops.h"
|
|
#include "network/http.h"
|
|
|
|
typedef struct {
|
|
char *URL;
|
|
bool direct;
|
|
} Link_Info;
|
|
|
|
class URL_List {
|
|
public:
|
|
//!Constructor
|
|
//!\param url from where to get the list of links
|
|
URL_List(const char *url);
|
|
//!Destructor
|
|
~URL_List();
|
|
//! Get the a filepath of the list
|
|
//!\param list index
|
|
char * GetURL(int index);
|
|
//! Is it a direct URL or just a file or path under the main url
|
|
bool IsDirectURL(int index);
|
|
//! Get the number of links counted
|
|
int GetURLCount();
|
|
//! Sort list
|
|
void SortList();
|
|
protected:
|
|
int urlcount;
|
|
Link_Info *Links;
|
|
};
|
|
|
|
#endif
|