Skip to content

Commit

Permalink
L105 / 103-121
Browse files Browse the repository at this point in the history
  • Loading branch information
qurious-pixel authored Mar 19, 2024
1 parent a5d291a commit b32541d
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/gui/CemuUpdateWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,24 @@ std::string _curlUrlUnescape(CURL* curl, std::string_view input)
bool CemuUpdateWindow::QueryUpdateInfo(std::string& downloadUrlOut, std::string& changelogUrlOut)
{
std::string buffer;
std::string urlStr("https://cemu.info/api2/version.php?v=");
//std::string urlStr("https://cemu.info/api2/version.php?v=");
std::string urlStr("UPDATE|https%3A%2F%2Fgithub.com%2Fcemu-project%2FCemu%2Freleases%2Fdownload%2Fv2.0-72%2Fcemu-2.0-72-windows-x64.zip|https%3A%2F%2Fcemu.info");
auto* curl = curl_easy_init();
urlStr.append(_curlUrlEscape(curl, BUILD_VERSION_STRING));
#if BOOST_OS_LINUX
urlStr.append("&platform=linux");
#elif BOOST_OS_WINDOWS
urlStr.append("&platform=windows");
#elif BOOST_OS_MACOS
urlStr.append("&platform=macos_x86");
#elif
//urlStr.append(_curlUrlEscape(curl, BUILD_VERSION_STRING));
//#if BOOST_OS_LINUX
// urlStr.append("&platform=linux");
//#elif BOOST_OS_WINDOWS
// urlStr.append("&platform=windows");
//#elif BOOST_OS_MACOS
// urlStr.append("&platform=macos_x86");
//#elif

// Print urlStr
wxLogMessage(urlStr);
//std::cout << urlStr;

#error Name for current platform is missing
#endif
//#error Name for current platform is missing
//#endif

curl_easy_setopt(curl, CURLOPT_URL, urlStr.c_str());
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
Expand Down

0 comments on commit b32541d

Please sign in to comment.