v2.9.4: einmalige Umstellung auf den Zweitnamen (MBMNET-ID unter echtem Namen wird für Pretendo gelöst)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8e69fbaac2
commit
52e0270c80
@@ -193,6 +193,25 @@ bool nnid_name_elsewhere(const char *name, u8 exceptSlot)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool nnid_unlink_slot(u8 slot, char *msg, size_t msglen)
|
||||
{
|
||||
if (!ready) return false;
|
||||
AccountId id = { 0 };
|
||||
ACT_GetAccountInfo(id, sizeof(id), slot, INFO_TYPE_ACCOUNT_ID);
|
||||
if (!id[0]) return true;
|
||||
FILE *log = fopen(LOG_FILE, "a");
|
||||
Result rc = ACTA_UnbindServerAccount(slot, true);
|
||||
if (log) fprintf(log, "Platz %u (%s) lösen %08lX\n", slot, id, (unsigned long)rc);
|
||||
if (R_FAILED(rc)) {
|
||||
Result u = ACTA_UnloadConsoleAccount();
|
||||
rc = ACTA_UnbindServerAccount(slot, true);
|
||||
if (log) fprintf(log, " nach Abmelden (%08lX): %08lX\n", (unsigned long)u, (unsigned long)rc);
|
||||
}
|
||||
if (log) fclose(log);
|
||||
if (R_FAILED(rc)) snprintf(msg, msglen, "\"%s\" (Platz %u) ließ sich nicht lösen (Fehler %08lX).", id, slot, (unsigned long)rc);
|
||||
return R_SUCCEEDED(rc);
|
||||
}
|
||||
|
||||
// Löst die ID "name" in allen Konto-Plätzen außer exceptSlot (nur auf dem 3DS). false + msg bei Fehler.
|
||||
bool nnid_unlink_named(const char *name, u8 exceptSlot, char *msg, size_t msglen)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user