disable license check, change cloud domain from omigamedev.com to panopainter.com

This commit is contained in:
2018-09-20 17:02:11 +02:00
parent 08c744fef5
commit 5a3ba0eea3
2 changed files with 8 additions and 4 deletions

View File

@@ -163,7 +163,7 @@ void App::download(std::string filename, std::function<void(float)> progress)
{
auto dest = data_path + "/" + filename;
FILE* fp = fopen(dest.c_str(), "wb");
std::string url = "http://omigamedev.com/panopainter/cloud/cloud-dwl.php?file=" + filename;
std::string url = "https://panopainter.com/cloud/cloud-dwl.php?file=" + filename;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_data_write);
@@ -181,6 +181,9 @@ void App::download(std::string filename, std::function<void(float)> progress)
bool App::check_license()
{
return true; // TODO: for distribuiton only
/*
CURL *curl = curl_easy_init();
if (curl)
{
@@ -205,6 +208,7 @@ bool App::check_license()
return true;
}
return false;
*/
}
void App::upload(std::string filename, std::string name, std::function<void(float)> progress)
@@ -227,7 +231,7 @@ void App::upload(std::string filename, std::string name, std::function<void(floa
if (curl)
{
std::string url = "http://omigamedev.com/panopainter/cloud/cloud-upl.php?name=" + name;
std::string url = "https://panopainter.com/cloud/cloud-upl.php?name=" + name;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &res);