mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 19:29:18 +01:00
ca55f426c0
*Reworked the cover downloader completely. Now has an overall missing files count and progress. Also missing files not found on the server can be dumped to a csv file *Added possibility to grad 3D Boxes and move them around in the zoomable mode *Changed default setting for video mode back to disc default
35 lines
927 B
C++
35 lines
927 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);
|
|
int DownloadProcess(int TotalDownloadCount);
|
|
struct block DownloadImage(const char * url, const char * gameID);
|
|
void CreateCSVLog();
|
|
|
|
struct ImageLink
|
|
{
|
|
std::string gameID;
|
|
const char *downloadURL;
|
|
const char *backupURL;
|
|
const char *writepath;
|
|
const char *progressTitle;
|
|
};
|
|
int choices;
|
|
u32 MissingImagesCount;
|
|
std::vector<ImageLink> MissingImages;
|
|
};
|
|
|
|
#endif
|