Browse Source

Fix plugin and request.hpp bugs, add icon res file to Windows

tags/v0.3.0
Andrew Belt 7 years ago
parent
commit
05a75ce24e
3 changed files with 4 additions and 2 deletions
  1. BIN
      Rack.res
  2. +1
    -1
      src/plugin.cpp
  3. +3
    -1
      src/util/request.cpp

BIN
Rack.res View File


+ 1
- 1
src/plugin.cpp View File

@@ -218,7 +218,7 @@ static void pluginRefreshPlugin(json_t *pluginJ) {
// Find slug in plugins list // Find slug in plugins list
for (Plugin *p : gPlugins) { for (Plugin *p : gPlugins) {
if (p->slug == slug) { if (p->slug == slug) {
// return;
return;
} }
} }




+ 3
- 1
src/util/request.cpp View File

@@ -123,7 +123,9 @@ bool requestDownload(std::string url, std::string filename, float *progress) {
if (!curl) if (!curl)
return false; return false;


FILE *file = fopen(filename.c_str(), "w");
FILE *file = fopen(filename.c_str(), "wb");
if (!file)
return false;


curl_easy_setopt(curl, CURLOPT_URL, url.c_str()); curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
curl_easy_setopt(curl, CURLOPT_VERBOSE, false); curl_easy_setopt(curl, CURLOPT_VERBOSE, false);


Loading…
Cancel
Save