v3.1.3: Admin-Prüfung zuerst (unabhängig von den Patches), SELECT zeigt den Auffrischen-Schritt (welches Modul)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
36f6e5e027
commit
d1fba48c6f
@@ -523,6 +523,15 @@ static void remove_splash(void)
|
||||
|
||||
// --- Aktivieren / Deaktivieren -----------------------------------------------
|
||||
|
||||
void (*patch_progress)(const char *step);
|
||||
static void progress(const char *what, const Target *t)
|
||||
{
|
||||
if (!patch_progress) return;
|
||||
char line[64];
|
||||
snprintf(line, sizeof(line), "%s %s-Modul", what, t->label);
|
||||
patch_progress(line);
|
||||
}
|
||||
|
||||
bool patch_enable(const char *server, bool *changed, char *msg, size_t msglen)
|
||||
{
|
||||
*changed = false;
|
||||
@@ -538,6 +547,7 @@ bool patch_enable(const char *server, bool *changed, char *msg, size_t msglen)
|
||||
static u8 ips[TARGET_COUNT][IPS_CAP];
|
||||
u32 ipsLen[TARGET_COUNT];
|
||||
for (size_t i = 0; i < TARGET_COUNT; i++) {
|
||||
progress("Patches:", &targets[i]);
|
||||
if (targets[i].optional) { // Miiverse
|
||||
ipsLen[i] = build_miiverse(&targets[i], server, ips[i], IPS_CAP);
|
||||
continue;
|
||||
@@ -547,6 +557,7 @@ bool patch_enable(const char *server, bool *changed, char *msg, size_t msglen)
|
||||
ipsLen[i] = cache_load(&targets[i], key, ips[i], IPS_CAP);
|
||||
if (ipsLen[i]) continue;
|
||||
static Patch patch;
|
||||
progress("Patches: lese", &targets[i]);
|
||||
if (!build_patch(&targets[i], server, &patch, msg, msglen)) {
|
||||
if (targets[i].optional || targets[i].soft) { ipsLen[i] = 0; msg[0] = 0; continue; } // auslassen
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user