Skip to content

Commit

Permalink
add extra check to make sure the wrong file isn't downloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 committed Jun 7, 2022
1 parent e92d056 commit 71829a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ static void updateGZDoom(HINSTANCE hInst){
for(const JSON::Element &asset_e:assets){
const JSON::object_t &asset=asset_e.get_obj();
const std::string &name=asset.at("name").get_str();
if((name.find("Windows")!=std::string::npos)&&(name.find("64bit")!=std::string::npos)){
if((name.find("Windows")!=std::string::npos)&&(name.find("64bit")!=std::string::npos)&&(name.find(".zip")!=std::string::npos)){
found=true;
gzdoom_download_url=asset.at("browser_download_url").get_str();
break;
Expand Down

0 comments on commit 71829a0

Please sign in to comment.