Exemple #1
0
 bool CheckVersionDiff()
 {
     bool diff = false;
     if(HasConnection())
     {
         std::string js = RetrieveContent("https://api.github.com/repos/xortroll/goldleaf/releases", "application/json");
         json j = json::parse(js);
         std::string latestid = j[0]["tag_name"].get<std::string>();
         Version latestv = Version::FromString(latestid);
         Version currentv = Version::FromString("0.3");
         diff = latestv.IsLower(currentv);
     }
     return diff;
 }
Exemple #2
0
bool Huggle::operator <(Version &a, Version &b)
{
    return a.IsLower(&b);
}