mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-15 16:05:10 +01:00
6b64e0714f
animation only on Channels layout, other layouts use Rotating disc. * Added new Priiloader 0.8 beta4 compatibility to parental control setting * Added support for Devolution's smaller Memory Card size (min size = 512KB, 59 blocks) * Fixed the auto-completion search bug (Thanks to hvy109 for the patch) * Reworked GUI window for covers download and auto select all choices. Select HQ/LQ/custom/original priority in the GUI settings. * Added banner download from custom URL when GameCube mode is enable. Set the URL manually in the GXGlobal.cfg, http://URL/ will search for http://URL/ID6.bnr and http://URL/ID3.bnr Delete URL to disable banner download. Thanks to Abz for the default URL.
38 lines
972 B
C++
38 lines
972 B
C++
#ifndef IMAGE_DOWNLOADER_H_
|
|
#define IMAGE_DOWNLOADER_H_
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include "network/http.h"
|
|
|
|
class ImageDownloader
|
|
{
|
|
public:
|
|
static void DownloadImages();
|
|
private:
|
|
void Start();
|
|
void SetChoices(int c) { choices = c; }
|
|
void FindMissingImages();
|
|
void FindMissing(const char *writepath, const char *downloadURL, const char *backupURL, const char *progressTitle, const char *backupProgressTitle, const char *fileExt);
|
|
int DownloadProcess(int TotalDownloadCount);
|
|
struct block DownloadImage(const char * url, const char * gameID, const char *fileExt);
|
|
void CreateCSVLog();
|
|
bool IsValidBanner(unsigned char *banner);
|
|
|
|
struct ImageLink
|
|
{
|
|
std::string gameID;
|
|
const char *downloadURL;
|
|
const char *backupURL;
|
|
const char *writepath;
|
|
const char *progressTitle;
|
|
const char *backupProgressTitle;
|
|
const char *fileExt;
|
|
};
|
|
int choices;
|
|
u32 MissingImagesCount;
|
|
std::vector<ImageLink> MissingImages;
|
|
};
|
|
|
|
#endif
|