mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-26 05:04:16 +01:00
30535c6f5d
formatted the code to make it easier to read. no functional changes at all. i didn't put anything from the libwiigui folder or banner folder in the beautifier. my automated .bat seems to have done a good job. the only places i see it fucked up was on (GXColor){blablabla}. it treated the brackets in the color like all the other brackets and put the color on a new line and indented it. i think i fixed most of them. not sure if it messed up anywhere else. also not sure about how it handled different linebreaks. it looks fine on windows. if it looks messed up on linux, it can be reverted. the code still compiles and runs fine.
39 lines
942 B
C++
39 lines
942 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
|