-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update sig url, allow cancelling download, "press A to continue" afte…
…r download
- Loading branch information
1 parent
6cf118c
commit d43b4df
Showing
7 changed files
with
149 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ build | |
*.elf | ||
*.nacp | ||
*.nro | ||
.vscode/* | ||
!.vscode/c_cpp_properties.json | ||
*.zip | ||
out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
#ifndef _DOWNLOAD_H_ | ||
#define _DOWNLOAD_H_ | ||
|
||
#define AMS_SIG_URL "https://sigmapatches.coomer.party/sigpatches.zip?latest" | ||
#define AMS_SIG_URL "https://sigmapatches.su/sigpatches.zip" | ||
#define APP_URL "https://github.com/ITotalJustice/sigpatch-updater/releases/latest/download/sigpatch-updater.nro" | ||
#define SYS_PATCH_URL "https://github.com/ITotalJustice/sys-patch/releases/latest/download/sys-patch.zip" | ||
#define TEMP_FILE "/switch/sigpatch-updater/temp" | ||
|
||
#define ON 1 | ||
#define OFF 0 | ||
|
||
|
||
#include <stdbool.h> | ||
#include <switch.h> | ||
|
||
typedef bool(*DlProgressCallback)(u32 dltotal, u32 dlnow, u32 ultotal, u32 ulnow); | ||
|
||
// | ||
bool downloadFile(const char *url, const char *output, int api); | ||
bool downloadFile(const char *url, const char *output, DlProgressCallback pcall); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef _UTIL_H_ | ||
#define _UTIL_H_ | ||
|
||
#include <stdbool.h> | ||
|
||
void consolePrint(const char* s, ...) __attribute__ ((format (printf, 1, 2))); | ||
|
||
bool stillRunning(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.