Skip to content

Commit

Permalink
Add check for local PKG installation (#81)
Browse files Browse the repository at this point in the history
Co-authored-by: Damián Parrino <[email protected]>
  • Loading branch information
illusion0001 and bucanero authored Jan 19, 2023
1 parent 23ce753 commit 630c2b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ void update_callback(int sel)

if (show_dialog(1, "New version available! Download update?"))
{
if (http_download(url->valuestring, "", "/data/goldcheats.pkg", 1))
show_message("Update downloaded to /data/goldcheats.pkg");
char* download_path = (dir_exists("/data/pkg/") == SUCCESS) ? "/data/pkg/goldcheats.pkg" : "/data/goldcheats.pkg";
if (http_download(url->valuestring, "", download_path, 1))
show_message("Update downloaded to %s", download_path);
else
show_message("Download error!");
}
Expand Down

0 comments on commit 630c2b7

Please sign in to comment.