disable license check, change cloud domain from omigamedev.com to panopainter.com
This commit is contained in:
@@ -163,7 +163,7 @@ void App::download(std::string filename, std::function<void(float)> progress)
|
|||||||
{
|
{
|
||||||
auto dest = data_path + "/" + filename;
|
auto dest = data_path + "/" + filename;
|
||||||
FILE* fp = fopen(dest.c_str(), "wb");
|
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_URL, url.c_str());
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fp);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_data_write);
|
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()
|
bool App::check_license()
|
||||||
{
|
{
|
||||||
|
return true; // TODO: for distribuiton only
|
||||||
|
|
||||||
|
/*
|
||||||
CURL *curl = curl_easy_init();
|
CURL *curl = curl_easy_init();
|
||||||
if (curl)
|
if (curl)
|
||||||
{
|
{
|
||||||
@@ -205,6 +208,7 @@ bool App::check_license()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void App::upload(std::string filename, std::string name, std::function<void(float)> progress)
|
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)
|
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_URL, url.c_str());
|
||||||
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
|
curl_easy_setopt(curl, CURLOPT_HTTPPOST, formpost);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &res);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &res);
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ void NodeDialogCloud::load_thumbs_thread()
|
|||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &res);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &res);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_data_handler);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, curl_data_handler);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, "http://omigamedev.com/panopainter/cloud/cloud-list.php");
|
curl_easy_setopt(curl, CURLOPT_URL, "https://panopainter.com/cloud/cloud-list.php");
|
||||||
auto err = curl_easy_perform(curl);
|
auto err = curl_easy_perform(curl);
|
||||||
|
|
||||||
if (err != CURLE_OK)
|
if (err != CURLE_OK)
|
||||||
@@ -124,7 +124,7 @@ void NodeDialogCloud::load_thumbs_thread()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
res.clear();
|
res.clear();
|
||||||
std::string url = "http://omigamedev.com/panopainter/cloud/cloud-info.php?file=" + n;
|
std::string url = "https://panopainter.com/cloud/cloud-info.php?file=" + n;
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
|
||||||
LOG("%s", url.c_str());
|
LOG("%s", url.c_str());
|
||||||
auto err = curl_easy_perform(curl);
|
auto err = curl_easy_perform(curl);
|
||||||
|
|||||||
Reference in New Issue
Block a user