Skip to content

Commit

Permalink
Support new account page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Sude- committed May 11, 2015
1 parent 21e6c61 commit b5cdf10
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 302 deletions.
6 changes: 3 additions & 3 deletions include/downloader.h
Expand Up @@ -92,9 +92,9 @@ class Downloader
int HTTP_Login(const std::string& email, const std::string& password);
std::vector<gameItem> getGames();
std::vector<gameItem> getFreeGames();
std::vector<gameFile> getExtrasFromHTML(const std::string& html, const std::string& gamename, const std::string& gameid);
std::string getGameDetailsHTML(const std::string& gamename, const std::string& gameid);
std::string getSerialsFromHTML(const std::string& html);
std::vector<gameFile> getExtrasFromJSON(const Json::Value& json, const std::string& gamename);
Json::Value getGameDetailsJSON(const std::string& gameid);
std::string getSerialsFromJSON(const Json::Value& json);
void saveSerials(const std::string& serials, const std::string& filepath);

static int progressCallback(void *clientp, double dltotal, double dlnow, double ultotal, double ulnow);
Expand Down
3 changes: 3 additions & 0 deletions include/util.h
Expand Up @@ -17,6 +17,7 @@
#include <sstream>
#include <rhash.h>
#include <boost/filesystem.hpp>
#include <json/json.h>

struct gameSpecificConfig
{
Expand All @@ -37,6 +38,8 @@ namespace Util
void filepathReplaceReservedStrings(std::string& str, const std::string& gamename, const unsigned int& platformId = 0, const std::string& dlcname = "");
void setFilePermissions(const boost::filesystem::path& path, const boost::filesystem::perms& permissions);
int getTerminalWidth();
void getDownloaderUrlsFromJSON(const Json::Value &root, std::vector<std::string> &urls);
std::vector<std::string> getDLCNamesFromJSON(const Json::Value &root);
}

#endif // UTIL_H

0 comments on commit b5cdf10

Please sign in to comment.